<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to API image</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520image/</link><description>Recent changes to API image</description><atom:link href="https://sourceforge.net/p/mathlabtool/wiki/API%20image/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 14 Dec 2023 17:28:20 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mathlabtool/wiki/API%20image/feed" rel="self" type="application/rss+xml"/><item><title>API image modified by tanzheng</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520image/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -8,7 +8,7 @@
 ****callback:**** Processing image.  
 ***ex:***

-    mlt_handle_video('test1', 600, 400, 1000, function(data) {
+    mlt_handle_video('test1', 600, 400, 1000, function(data, show_handle) {
        mlt_page_console_log(data);
     });
 * **mlt_video_gray_avg:** The average value generates a grayscale image.  
@@ -17,3 +17,33 @@
 ***ex:***

     mlt_video_gray_avg(data);
+* **mlt_image_smooth_avg:** The average value generates a smooth image.  
+***param:***  
+****data:**** Pixel data.  
+***ex:***
+
+    mlt_image_smooth_avg(data);
+* **mlt_image_sharpen_model:** Generates a sharpen image by model.  
+***param:***  
+****data:**** Pixel data.  
+****model:**** Sharpening model.  
+***ex:***
+
+    mlt_image_sharpen_model(
+       data, 
+       mlt_get_sharpen_model('Laplacian')
+    );
+* **mlt_image_gray_diff_binaryzation:** Image difference and binarization.  
+***param:***  
+****data:**** Pixel data.  
+****last_data:**** Last pixel data.  
+****Threshold:**** Threshold of binarization.  
+***ex:***
+
+    var last_pixel_data = mlt_clone_array(mlt_get_last_pixel_data());
+    var last_pixel_data_len = last_pixel_data.length;
+    mlt_save_pixel_data(data);
+    
+    if(last_pixel_data_len) {
+       mlt_image_gray_diff_binaryzation(data, last_pixel_data, 10);
+    }
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tanzheng</dc:creator><pubDate>Thu, 14 Dec 2023 17:28:20 -0000</pubDate><guid>https://sourceforge.net3bc13c18d02c325898ef71d18b92c88ca86a2b46</guid></item><item><title>API image modified by tanzheng</title><link>https://sourceforge.net/p/mathlabtool/wiki/API%2520image/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="" href="https://github.com/xxyjskx1987/MathLabTool/wiki/API-Reference" rel="nofollow"&gt;Contents&lt;/a&gt;&lt;br/&gt;
* &lt;strong&gt;mlt_handle_video:&lt;/strong&gt; Video processing.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*name:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Dialog name.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;width:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Dialog width.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;height:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Dialog height.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;interval:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Image acquisition interval.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;&lt;em&gt;callback:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Processing image.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;mlt_handle_video('test1', 600, 400, 1000, function(data) {
    mlt_page_console_log(data);
});
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;mlt_video_gray_avg:&lt;/strong&gt; The average value generates a grayscale image.&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;param:&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;
&lt;strong&gt;&lt;em&gt;*data:&lt;/em&gt;&lt;/strong&gt;&lt;em&gt; Pixel data.&lt;br/&gt;
&lt;/em&gt;&lt;strong&gt;ex:&lt;/strong&gt;*&lt;/p&gt;
&lt;p&gt;mlt_video_gray_avg(data);&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tanzheng</dc:creator><pubDate>Thu, 14 Dec 2023 17:28:20 -0000</pubDate><guid>https://sourceforge.net862fafbf544c80bab79cb85f9e49cd404c7f8aef</guid></item></channel></rss>