diff options
author | siddhu8990 | 2016-08-25 10:29:32 +0530 |
---|---|---|
committer | siddhu8990 | 2016-08-25 10:29:32 +0530 |
commit | 425ae9b5508196bc39ab98f12696550dfa6f872c (patch) | |
tree | ba140cadce2eb1e927e84b94653ef5ff83707827 /2.3-1/macros/ImageProcessing | |
parent | 0b014f0b667df241a3b0fa575f11577d453d08f8 (diff) | |
download | Scilab2C-425ae9b5508196bc39ab98f12696550dfa6f872c.tar.gz Scilab2C-425ae9b5508196bc39ab98f12696550dfa6f872c.tar.bz2 Scilab2C-425ae9b5508196bc39ab98f12696550dfa6f872c.zip |
Basic image prcessing working for RPi
Diffstat (limited to '2.3-1/macros/ImageProcessing')
-rw-r--r-- | 2.3-1/macros/ImageProcessing/buildmacros.sce | 10 | ||||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/core/CV_CreateImage.bin | bin | 3564 -> 3604 bytes | |||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/core/CV_CreateImage.sci | 2 | ||||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/core/CV_GetImgSize.bin | bin | 0 -> 2764 bytes | |||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/core/CV_GetImgSize.sci | 38 | ||||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/core/lib | bin | 676 -> 700 bytes | |||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/core/names | 1 | ||||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.bin | bin | 0 -> 4224 bytes | |||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.sci | 43 | ||||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/imgproc/buildmacros.sce | 15 | ||||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/imgproc/lib | bin | 0 -> 688 bytes | |||
-rw-r--r-- | 2.3-1/macros/ImageProcessing/imgproc/names | 1 |
12 files changed, 102 insertions, 8 deletions
diff --git a/2.3-1/macros/ImageProcessing/buildmacros.sce b/2.3-1/macros/ImageProcessing/buildmacros.sce index 14c7c1b1..6431a7df 100644 --- a/2.3-1/macros/ImageProcessing/buildmacros.sce +++ b/2.3-1/macros/ImageProcessing/buildmacros.sce @@ -9,8 +9,9 @@ // Organization: FOSSEE, IIT Bombay // Email: toolbox@scilab.in -OpencvDirs = [ "core", ... - "highgui"]; +OpencvDirs = [ "core", ... + "highgui", ... + "imgproc"]; current_path = get_absolute_file_path("buildmacros.sce"); @@ -23,8 +24,3 @@ OpencvDirs = [ "core", ... end clear current_path; - -tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce')); - -clear tbx_build_macros; - diff --git a/2.3-1/macros/ImageProcessing/core/CV_CreateImage.bin b/2.3-1/macros/ImageProcessing/core/CV_CreateImage.bin Binary files differindex 4c638cc2..d5aa3080 100644 --- a/2.3-1/macros/ImageProcessing/core/CV_CreateImage.bin +++ b/2.3-1/macros/ImageProcessing/core/CV_CreateImage.bin diff --git a/2.3-1/macros/ImageProcessing/core/CV_CreateImage.sci b/2.3-1/macros/ImageProcessing/core/CV_CreateImage.sci index 49649201..72dd9b8c 100644 --- a/2.3-1/macros/ImageProcessing/core/CV_CreateImage.sci +++ b/2.3-1/macros/ImageProcessing/core/CV_CreateImage.sci @@ -13,7 +13,7 @@ function img = CV_CreateImage(width,height,bit_depth,no_of_channels) // This function can be used to create opencv image object. For more info // about bit depth and channels,please refer to OpenCV documentation // Examples -// CV_CreateImage([320 240], "8U", 1) //to create image of the size 320*240 +// CV_CreateImage([320 240], "IPL_DEPTH_8U", 1) //to create image of the size 320*240 // pixels with 8 bit unsigned each pixels and gray scale image // // See also diff --git a/2.3-1/macros/ImageProcessing/core/CV_GetImgSize.bin b/2.3-1/macros/ImageProcessing/core/CV_GetImgSize.bin Binary files differnew file mode 100644 index 00000000..ede60e6f --- /dev/null +++ b/2.3-1/macros/ImageProcessing/core/CV_GetImgSize.bin diff --git a/2.3-1/macros/ImageProcessing/core/CV_GetImgSize.sci b/2.3-1/macros/ImageProcessing/core/CV_GetImgSize.sci new file mode 100644 index 00000000..cd7ebdaf --- /dev/null +++ b/2.3-1/macros/ImageProcessing/core/CV_GetImgSize.sci @@ -0,0 +1,38 @@ +// 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 + +function imgsize = CV_GetImgSize(img) +// function to get size of the image (width*height) +// +// Calling Sequence +// CV_GetImgSize(img) +// +// Parameters +// img: image whose size is to be returned +// +// Description +// This function can be used for retriving size information of the image. +// It returs an array with first image element as width and second as height +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// size = CV_GetImgSize(img) +// +// See also +// CV_LoadImage CV_CreateImage +// +// Authors +// Siddhesh Wani +// +imgsize = [0 0]; +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV + +endfunction diff --git a/2.3-1/macros/ImageProcessing/core/lib b/2.3-1/macros/ImageProcessing/core/lib Binary files differindex 4bccbc8b..8d5e5c74 100644 --- a/2.3-1/macros/ImageProcessing/core/lib +++ b/2.3-1/macros/ImageProcessing/core/lib diff --git a/2.3-1/macros/ImageProcessing/core/names b/2.3-1/macros/ImageProcessing/core/names index a681f790..f56c951c 100644 --- a/2.3-1/macros/ImageProcessing/core/names +++ b/2.3-1/macros/ImageProcessing/core/names @@ -1 +1,2 @@ CV_CreateImage +CV_GetImgSize diff --git a/2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.bin b/2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.bin Binary files differnew file mode 100644 index 00000000..6ca6ea46 --- /dev/null +++ b/2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.bin diff --git a/2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.sci b/2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.sci new file mode 100644 index 00000000..8baa3865 --- /dev/null +++ b/2.3-1/macros/ImageProcessing/imgproc/CV_CvtColor.sci @@ -0,0 +1,43 @@ +// 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 + +function status = CV_CvtColor(srcimg,dstimg,code) +// function to convert image from one colorspace to other colorspace +// +// Calling Sequence +// CV_CvtColor(srcimg,dstimg,code,dstCn) +// +// Parameters +// srcimg: source image to be converted +// dstimg: destination image in which to store converted image +// code: String specifying conversion type. Same as defined in OpenCV +// for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image +// dstCn: no of channels in destination image (0 by default) +// +// Description +// This function can be used for converting an image to other colorspace. +// Refer OpenCV documentation for list of available conversions +// Examples +// img = CV_LoadImage('~/test.jpg',0) +// dst = CV_CreateImage(320,240,"IPL_DEPTH_8U",1) +// CV_CvtColor(img,dst,'CV_RGB2GRAY') +// +// See also +// CV_LoadImage CV_CreateImage +// +// Authors +// Siddhesh Wani +// +status = 0; +// This is curretly dummy function. It provides no functionality but is required +// for providing support for generating C code for OpenCV + +endfunction diff --git a/2.3-1/macros/ImageProcessing/imgproc/buildmacros.sce b/2.3-1/macros/ImageProcessing/imgproc/buildmacros.sce new file mode 100644 index 00000000..60fd2843 --- /dev/null +++ b/2.3-1/macros/ImageProcessing/imgproc/buildmacros.sce @@ -0,0 +1,15 @@ +// +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009-2009 - DIGITEO - Bruno JOFRET +// +// 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 +// +// + +tbx_build_macros(TOOLBOX_NAME, get_absolute_file_path('buildmacros.sce')); + +clear tbx_build_macros; diff --git a/2.3-1/macros/ImageProcessing/imgproc/lib b/2.3-1/macros/ImageProcessing/imgproc/lib Binary files differnew file mode 100644 index 00000000..601946ed --- /dev/null +++ b/2.3-1/macros/ImageProcessing/imgproc/lib diff --git a/2.3-1/macros/ImageProcessing/imgproc/names b/2.3-1/macros/ImageProcessing/imgproc/names new file mode 100644 index 00000000..537af898 --- /dev/null +++ b/2.3-1/macros/ImageProcessing/imgproc/names @@ -0,0 +1 @@ +CV_CvtColor |