summaryrefslogtreecommitdiff
path: root/src/c/imageProcessing/interfaces
diff options
context:
space:
mode:
authorsiddhu89902016-09-22 10:35:52 +0530
committersiddhu89902016-09-22 10:35:52 +0530
commit9a30882032e80661fe6c69d7c50da0154e4e431f (patch)
treeee2dab98e220547f050f7b891d8cc0aaaf78dfd4 /src/c/imageProcessing/interfaces
parent2790257d385a9d7d9e0dab9205baf4b3df0dd8c8 (diff)
downloadScilab2C_fossee_old-9a30882032e80661fe6c69d7c50da0154e4e431f.tar.gz
Scilab2C_fossee_old-9a30882032e80661fe6c69d7c50da0154e4e431f.tar.bz2
Scilab2C_fossee_old-9a30882032e80661fe6c69d7c50da0154e4e431f.zip
Image processing functions for blurring, thresholding and edge detection added
Diffstat (limited to 'src/c/imageProcessing/interfaces')
-rw-r--r--src/c/imageProcessing/interfaces/int_cvhighgui.hpp4
-rw-r--r--src/c/imageProcessing/interfaces/int_cvimgproc.hpp51
2 files changed, 51 insertions, 4 deletions
diff --git a/src/c/imageProcessing/interfaces/int_cvhighgui.hpp b/src/c/imageProcessing/interfaces/int_cvhighgui.hpp
index 05f260f..8e1a989 100644
--- a/src/c/imageProcessing/interfaces/int_cvhighgui.hpp
+++ b/src/c/imageProcessing/interfaces/int_cvhighgui.hpp
@@ -20,8 +20,8 @@
//#define g2d0CV_LoadImageim0(filename,name_size,loadtype) imcvLoadImages(filename,loadtype)
#define g2d0CV_LoadImagemt0(filename,name_size,loadtype) imread(filename,loadtype)
-#define g2mt0CV_ShowImageu80(winname,win_size,img) imshow(winname,img)
-#define mt0CV_ShowImageu80(img) imshow("",img)
+#define g2mt0CV_ShowImageu80(winname,win_size,img) imcvShowImages(winname,img)
+#define mt0CV_ShowImageu80(img) imcvShowImages("",img)
#define d0CV_WaitKeyu80(delay) cvWaitKey(delay)
#define g2mt0CV_SaveImageu80(filename,name_size,img) imwrite(filename,img)
diff --git a/src/c/imageProcessing/interfaces/int_cvimgproc.hpp b/src/c/imageProcessing/interfaces/int_cvimgproc.hpp
index 65fa77e..9b1a85c 100644
--- a/src/c/imageProcessing/interfaces/int_cvimgproc.hpp
+++ b/src/c/imageProcessing/interfaces/int_cvimgproc.hpp
@@ -18,7 +18,54 @@
#include "opencv2/imgproc/imgproc.hpp"
#define mt0g2CV_CvtColormt0(src,code,code_size) imcvCvtColors(src,code)
-#define mt0d0d0g2CV_Thresholdmt0(src,threshold,maxvalue,thresh_type,type_size) \
- imcvThresholds(src,threshold,maxvalue,thresh_type)
+
+#define mt0d0d0g2CV_Thresholdmt0(src,threshold,maxvalue,thresh_type, \
+ type_size) imcvThresholds(src,threshold,maxvalue,thresh_type)
+
+#define mt0d0g2g2d0d0CV_AdaptiveThresholdmt0(src,maxvalue,adaptmethod, \
+ adapt_size,thresh_type,blocksize,C) imcvAdaaptThresholds(src, \
+ maxvalue,adaptmethod,thresh_type,blocksize,C)
+
+#define mt0g2d0CV_DistanceTransform(src,distance_type,type_size,mask_size) \
+ imcvDistanceTransform(src,distance_type,mask_size)
+
+#define mt0d0d0d0d0g2CV_Blurmt0(src,ksize_width,ksize_height,anchor_x, \
+ anchor_y,border_type,type_size) imcvBlurs(src,ksize_width, \
+ ksize_height,anchor_x,anchor_y,border_type)
+
+#define mt0d0d0d0d0g2CV_GaussianBlurmt0(src,ksize_width,ksize_height,sigma_x, \
+ sigma_y,border_type,type_size) imcvGaussianBlurs(src,ksize_width, \
+ ksize_height,sigma_x,sigma_y,border_type)
+
+#define mt0d0CV_MedianBlurmt0(src,ksize) imcvMedianBlurs(src,ksize)
+
+#define mt0g2d0CV_Erodemt0(src,erosion_type,type_size,erosion_size) \
+ imcvErode(src,erosion_type,erosion_size,1,"BORDER_CONSTANT",0)
+
+#define mt0g2d0d0g2d0CV_Erodemt0(src,erosion_type,type_size,erosion_size, \
+ iterations,border_type,bor_size,border_value) \
+ imcvErode(src,erosion_type,erosion_size,iterations,border_type, \
+ border_value)
+
+#define mt0g2d0CV_Dilatemt0(src,dilation_type,type_size,dilation_size) \
+ imcvDilate(src,dilation_type,dilation_size,1,"BORDER_CONSTANT",0)
+
+#define mt0g2d0d0g2d0CV_Dilatemt0(src,dilation_type,type_size,dilation_size, \
+ iterations,border_type,bor_size,border_value) \
+ imcvDilate(src,dilation_type,dilation_size,iterations,border_type, \
+ border_value)
+
+#define mt0d0d0d0d0CV_Cannymt0(src,threshold1,threshold2,aperture_size, \
+ L2gradient) imcvCanny(src,threshold1,threshold2,aperture_size, \
+ L2gradient)
+
+#define mt0d0d0CV_Cannymt0(src,threshold1,threshold2) imcvCanny(src, \
+ threshold1,threshold2,3,0)
+
+#define mt0d0d0d0g2CV_CornerHarrismt0(src,blocksize,ksize,k,border_type, \
+ type_size) imcvCornerHarris(src,blocksize,ksize,k,border_type)
+
+#define mt0d0d0d0CV_CornerHarrismt0(src,blocksize,ksize,k) \
+ imcvCornerHarris(src,blocksize,ksize,k,"BORDER_DEFAULT")
#endif /*__INT_CVIMGPROC_H__*/