diff options
author | siddhu8990 | 2016-08-25 10:29:32 +0530 |
---|---|---|
committer | siddhu8990 | 2016-08-25 10:29:32 +0530 |
commit | ea1e22e36a9559448919d7ae2dd24a25743861ec (patch) | |
tree | 08126b46fe4fbeccdbc323af2c260ab9836a235f /macros/ImageProcessing | |
parent | fbd135ca716c6f5ee8f91425cff6bef3c27dc6b6 (diff) | |
download | Scilab2C_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 'macros/ImageProcessing')
-rw-r--r-- | macros/ImageProcessing/buildmacros.sce | 10 | ||||
-rw-r--r-- | macros/ImageProcessing/core/CV_CreateImage.bin | bin | 3564 -> 3604 bytes | |||
-rw-r--r-- | macros/ImageProcessing/core/CV_CreateImage.sci | 2 | ||||
-rw-r--r-- | macros/ImageProcessing/core/CV_GetImgSize.bin | bin | 0 -> 2764 bytes | |||
-rw-r--r-- | macros/ImageProcessing/core/CV_GetImgSize.sci | 38 | ||||
-rw-r--r-- | macros/ImageProcessing/core/lib | bin | 676 -> 700 bytes | |||
-rw-r--r-- | macros/ImageProcessing/core/names | 1 | ||||
-rw-r--r-- | macros/ImageProcessing/imgproc/CV_CvtColor.bin | bin | 0 -> 4224 bytes | |||
-rw-r--r-- | macros/ImageProcessing/imgproc/CV_CvtColor.sci | 43 | ||||
-rw-r--r-- | macros/ImageProcessing/imgproc/buildmacros.sce | 15 | ||||
-rw-r--r-- | macros/ImageProcessing/imgproc/lib | bin | 0 -> 688 bytes | |||
-rw-r--r-- | macros/ImageProcessing/imgproc/names | 1 |
12 files changed, 102 insertions, 8 deletions
diff --git a/macros/ImageProcessing/buildmacros.sce b/macros/ImageProcessing/buildmacros.sce index 14c7c1b..6431a7d 100644 --- a/macros/ImageProcessing/buildmacros.sce +++ b/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/macros/ImageProcessing/core/CV_CreateImage.bin b/macros/ImageProcessing/core/CV_CreateImage.bin Binary files differindex 4c638cc..d5aa308 100644 --- a/macros/ImageProcessing/core/CV_CreateImage.bin +++ b/macros/ImageProcessing/core/CV_CreateImage.bin diff --git a/macros/ImageProcessing/core/CV_CreateImage.sci b/macros/ImageProcessing/core/CV_CreateImage.sci index 4964920..72dd9b8 100644 --- a/macros/ImageProcessing/core/CV_CreateImage.sci +++ b/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/macros/ImageProcessing/core/CV_GetImgSize.bin b/macros/ImageProcessing/core/CV_GetImgSize.bin Binary files differnew file mode 100644 index 0000000..ede60e6 --- /dev/null +++ b/macros/ImageProcessing/core/CV_GetImgSize.bin diff --git a/macros/ImageProcessing/core/CV_GetImgSize.sci b/macros/ImageProcessing/core/CV_GetImgSize.sci new file mode 100644 index 0000000..cd7ebda --- /dev/null +++ b/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/macros/ImageProcessing/core/lib b/macros/ImageProcessing/core/lib Binary files differindex 4bccbc8..8d5e5c7 100644 --- a/macros/ImageProcessing/core/lib +++ b/macros/ImageProcessing/core/lib diff --git a/macros/ImageProcessing/core/names b/macros/ImageProcessing/core/names index a681f79..f56c951 100644 --- a/macros/ImageProcessing/core/names +++ b/macros/ImageProcessing/core/names @@ -1 +1,2 @@ CV_CreateImage +CV_GetImgSize diff --git a/macros/ImageProcessing/imgproc/CV_CvtColor.bin b/macros/ImageProcessing/imgproc/CV_CvtColor.bin Binary files differnew file mode 100644 index 0000000..6ca6ea4 --- /dev/null +++ b/macros/ImageProcessing/imgproc/CV_CvtColor.bin diff --git a/macros/ImageProcessing/imgproc/CV_CvtColor.sci b/macros/ImageProcessing/imgproc/CV_CvtColor.sci new file mode 100644 index 0000000..8baa386 --- /dev/null +++ b/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/macros/ImageProcessing/imgproc/buildmacros.sce b/macros/ImageProcessing/imgproc/buildmacros.sce new file mode 100644 index 0000000..60fd284 --- /dev/null +++ b/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/macros/ImageProcessing/imgproc/lib b/macros/ImageProcessing/imgproc/lib Binary files differnew file mode 100644 index 0000000..601946e --- /dev/null +++ b/macros/ImageProcessing/imgproc/lib diff --git a/macros/ImageProcessing/imgproc/names b/macros/ImageProcessing/imgproc/names new file mode 100644 index 0000000..537af89 --- /dev/null +++ b/macros/ImageProcessing/imgproc/names @@ -0,0 +1 @@ +CV_CvtColor |