summaryrefslogtreecommitdiff
path: root/src/c/imageProcessing/interfaces
diff options
context:
space:
mode:
authorsiddhu89902016-08-25 10:29:32 +0530
committersiddhu89902016-08-25 10:29:32 +0530
commitea1e22e36a9559448919d7ae2dd24a25743861ec (patch)
tree08126b46fe4fbeccdbc323af2c260ab9836a235f /src/c/imageProcessing/interfaces
parentfbd135ca716c6f5ee8f91425cff6bef3c27dc6b6 (diff)
downloadScilab2C_fossee_old-ea1e22e36a9559448919d7ae2dd24a25743861ec.tar.gz
Scilab2C_fossee_old-ea1e22e36a9559448919d7ae2dd24a25743861ec.tar.bz2
Scilab2C_fossee_old-ea1e22e36a9559448919d7ae2dd24a25743861ec.zip
Basic image prcessing working for RPi
Diffstat (limited to 'src/c/imageProcessing/interfaces')
-rw-r--r--src/c/imageProcessing/interfaces/int_cvcore.h3
-rw-r--r--src/c/imageProcessing/interfaces/int_cvhighgui.h2
-rw-r--r--src/c/imageProcessing/interfaces/int_cvimgproc.h32
3 files changed, 35 insertions, 2 deletions
diff --git a/src/c/imageProcessing/interfaces/int_cvcore.h b/src/c/imageProcessing/interfaces/int_cvcore.h
index 9d83caa..5ae0055 100644
--- a/src/c/imageProcessing/interfaces/int_cvcore.h
+++ b/src/c/imageProcessing/interfaces/int_cvcore.h
@@ -19,11 +19,12 @@ extern "C" {
#include "types.h"
-
+#include "cvcore.h"
#define d0d0g2d0CV_CreateImageim0(width,height,depth,depth_size,no_of_ch) \
imcvCreateImages(width,height,depth,no_of_ch)
+#define im0CV_GetImgSized2(img,imgsize) imcvGetImgSizes(img,imgsize)
#ifdef __cplusplus
} /* extern "C" */
#endif
diff --git a/src/c/imageProcessing/interfaces/int_cvhighgui.h b/src/c/imageProcessing/interfaces/int_cvhighgui.h
index f08ac40..d8ecf1c 100644
--- a/src/c/imageProcessing/interfaces/int_cvhighgui.h
+++ b/src/c/imageProcessing/interfaces/int_cvhighgui.h
@@ -19,7 +19,7 @@ extern "C" {
#include "types.h"
-#include "opencv2/highgui.hpp"
+#include "opencv2/highgui/highgui.hpp"
#define g2d0CV_LoadImageim0(filename,name_size,loadtype) imcvLoadImages(filename,loadtype)
#define g2im0CV_ShowImageu80(winname,win_size,img) imcvShowImages(winname,img)
diff --git a/src/c/imageProcessing/interfaces/int_cvimgproc.h b/src/c/imageProcessing/interfaces/int_cvimgproc.h
new file mode 100644
index 0000000..47192e1
--- /dev/null
+++ b/src/c/imageProcessing/interfaces/int_cvimgproc.h
@@ -0,0 +1,32 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution. The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#ifndef __INT_CVIMGPROC_H__
+#define __INT_CVIMGPROC_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#include "types.h"
+#include "opencv2/imgproc/imgproc.hpp"
+
+#define im0im0g2CV_CvtColoru80(src,dst,code,code_size) imcvCvtColors(src,dst,code)
+#define im0d0d0g2CV_Thresholdim0(src,threshold,maxvalue,thresh_type,type_size)
+ imcvThrehold(src,threshold,maxvalue,thresh_type)
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__INT_CVIMGPROC_H__*/