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 /src/c/imageProcessing/cvcore | |
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 'src/c/imageProcessing/cvcore')
-rw-r--r-- | src/c/imageProcessing/cvcore/imcvCreateImages.c | 2 | ||||
-rw-r--r-- | src/c/imageProcessing/cvcore/imcvGetImgSizes.c | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/src/c/imageProcessing/cvcore/imcvCreateImages.c b/src/c/imageProcessing/cvcore/imcvCreateImages.c index a7eeaec..4543b72 100644 --- a/src/c/imageProcessing/cvcore/imcvCreateImages.c +++ b/src/c/imageProcessing/cvcore/imcvCreateImages.c @@ -19,7 +19,7 @@ IplImage* imcvCreateImages(int width, int height, char *bit_depth, uint8 no_of_ch) { CvSize imageSize = cvSize (width,height); - IplImage *img = NULL; + IplImage* img = NULL; if (strcmp(bit_depth,"IPL_DEPTH_1U") == 0) img = cvCreateImage(imageSize,IPL_DEPTH_1U,no_of_ch); else if (strcmp(bit_depth,"IPL_DEPTH_8U") == 0) diff --git a/src/c/imageProcessing/cvcore/imcvGetImgSizes.c b/src/c/imageProcessing/cvcore/imcvGetImgSizes.c new file mode 100644 index 0000000..2faa627 --- /dev/null +++ b/src/c/imageProcessing/cvcore/imcvGetImgSizes.c @@ -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 +*/ + +/* Function to convert image object to other color space*/ + +#include "types.h" +#include "cvcore.h" +#include "cvimgproc.h" +#include <stdio.h> + +void imcvGetImgSizes(IplImage* src, double* imgsize) +{ + if(src != NULL) + { + imgsize[0] = src->width; + imgsize[1] = src->height; + } + else + { + printf("Error with input image"); + } + +}
\ No newline at end of file |