Ask Your Question

Nermeen's profile - activity

2016-01-30 17:00:04 -0500 received badge  Good Question (source)
2015-11-25 07:12:19 -0500 received badge  Famous Question (source)
2014-12-09 13:49:13 -0500 marked best answer opencv instillation with visual studio 2005 (windows 7 / 32 bit)

hi i followed this toturial for installing opencv with visual studio 2005 but each time i have the same error which is " Cannot open include file: 'cv.h': No such file or directory"

could anyone help me to solve the problem is it in installation or in sth else help please

2014-09-16 13:15:22 -0500 received badge  Notable Question (source)
2014-07-29 17:09:11 -0500 received badge  Famous Question (source)
2014-04-14 22:18:03 -0500 received badge  Notable Question (source)
2014-02-21 08:31:48 -0500 received badge  Popular Question (source)
2014-02-19 06:31:34 -0500 received badge  Popular Question (source)
2013-07-01 20:21:45 -0500 marked best answer Opencv with PHP(wamp server, windows 32 bit )

hi guys,,,
I'm doing PHP application which is image processing application and i wish if anyone can answer my question which is "Can i install OPENCV for PHP, if yes how can i do that? ",,, sorry if my question look stupid but I'm new in opencv and in libraries in general.

Thanks all

2013-06-17 09:07:11 -0500 received badge  Nice Question (source)
2013-05-28 14:46:35 -0500 commented question Passing image to QPixMap not as path in QT

it's Ok thank u anyway :)

2013-05-28 13:18:49 -0500 commented question Passing image to QPixMap not as path in QT

:) so, no solution :\

2013-05-28 12:48:46 -0500 commented question Passing image to QPixMap not as path in QT

sorry if it is not allowed to post it here,,, but it's opencv code integrated with qt

2013-05-28 12:41:01 -0500 asked a question Passing image to QPixMap not as path in QT

Is there a way to pass an image as a name not as a path to Qpixmap in QT(C++),, for example i have the following code in which the processed image should be displayed using Qpixmap label but when i tried that i have to save it and then to pass it to Qpixmap to be displayed,,, but it's not an efficient way so could anybody help me please i'm new to Qt and have no experience..

    void MainWindow::on_pushButton_3_clicked()
    cv::Mat hsv_img, seg_img,infected_area, hsv_infected,seg_input,hsv_seg;
    Mat filter_img,hsv;

    cv::Mat input_image = imread(this->file_name.toAscii().data());
    cvtColor(filter_img, hsv, CV_BGR2HSV);
    hsvSeg(filter_img,hsv, hsv_img, seg_img,14.0,0.0,117.0,255.0,133.0,179.0);//call hsv segmentation function to segment leaf
    cvtColor(seg_img, hsv_seg, CV_BGR2HSV);
    hsvSeg(seg_img,hsv_seg, hsv_infected, infected_area,0.09*255,0.01*255,0.1*255,0.14*255,1.0*255,1.0*255);//call hsv segmentation to segment infected areas
    imwrite( "C:/Image.jpg", filter_img );

2013-05-28 06:12:41 -0500 received badge  Student (source)
2013-05-28 06:07:49 -0500 commented answer converting from iplimage to cvmat and vise versa

thank u but I'm new to opencv and i thought that was complicated to me :(

2013-05-28 05:57:47 -0500 commented answer converting from iplimage to cvmat and vise versa

that's simple, understandable and helpful.... thank u

2013-05-28 03:30:48 -0500 asked a question converting from iplimage to cvmat and vise versa

could anybody please tell me how can i convert iplimage to mat and convert mat to iplimage

2013-05-15 18:11:39 -0500 asked a question QT and OpenCV error: core.hpp not found

i have installed qt 5.0.2 with opencv 2.4.5 with windows 7 32-bit following this tutorial but when i finished i tested it using the example mentioned in the previous link but i had this error

error: opencv2/core/core.hpp: No such file or directory

could anybody help me please to determine whats the matter and how to solve it

2013-05-12 16:49:22 -0500 commented question opencv error: opencv fail to allocate memory

it has been solved by moving " CvMat *mat_hsv = cvCreateMat(RgbImg->height,RgbImg->width,CV_32FC3 );// creat mat image" out of while loop

2013-05-12 15:15:32 -0500 asked a question linking opencv and qt libraries


is there a way to connect opencv and qt libraries. actually i'm new in qt and i have written my project in opencv (visual studio 2005 c++) which need now an interface but i'm worry about connecting both libraries together. so could anybody please tell if there is a way or not and if yes generalize the steps to do so

2013-05-12 03:00:32 -0500 asked a question opencv error: opencv fail to allocate memory

hi i wrote the following code in opencv c++ with visual studio 2005 this code will show a scroll bar that allow the user to define an area of an image then it will send the new image of the chosen area to hsv_seg function that will segment a part of the image using predefined hue, saturation, & value values. i sometimes used iplimage and other used cvmat is that cause such problem? please help ,,,,any help will be heavily appreciated


#include <stdio.h>
#include <math.h>
#include <cv.h>
#include <highgui.h>
#define PIXEL(img,x,y) (img)->imageData[(x)*img->widthStep+(y)]
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>

using namespace cv;
using namespace std;

int high_switch_h = 0;
int highInth = 0;
int low_switch_h = 0;
int lowInth = 0;

void switch_h_callback_h( int position ){
    highInth = position;

void switch_h_callback_l( int position ){
    lowInth = position;

int high_switch_s = 0;
int highInts = 0;
int low_switch_s = 0;
int lowInts = 0;

void switch_s_callback_h( int position ){
    highInts = position;

void switch_s_callback_l( int position ){
    lowInts = position;

int high_switch_v = 0;
int highIntv = 0;
int low_switch_v = 0;
int lowIntv = 0;

void switch_v_callback_h( int position ){
    highIntv = position;

void switch_v_callback_l( int position ){
    lowIntv = position;

void hsvSeg(const cv::Mat& input_image,const cv::Mat& hsv ,cv::Mat &output1, cv::Mat &output2,int low_h,int low_s, int low_v,int high_h,int high_s, int high_v) {
    // modify output1

    Mat bw;
    inRange(output1, Scalar(low_h, low_s, low_v), Scalar(high_h, high_s, high_v), bw);// segmentaion based on hsv min & max values

    vector<vector<Point> > contours;
    findContours(bw.clone(), contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE);

    Mat dst = Mat::zeros(input_image.size(), input_image.type());
    drawContours(dst, contours, -1, Scalar::all(255), CV_FILLED);
    output2 &= input_image ;


int main()

IplImage *RgbImg,*imHSV,*outImgh , *h_plane , *s_plane, *v_plane ,*alpha,*outImgs,*outImgv,*outImg ,*outH,*outS,*outV;
int height,width,channels;

cv::Mat input_image = imread("m3.jpg");
       if (input_image.empty())
        return -1;

    Mat filter_img;

    IplImage rgb=filter_img; //converting from cvmat to iplimage
    RgbImg =&rgb;



printf("Could not load image file: %s\n");
//cvNamedWindow("Oimg", CV_WINDOW_AUTOSIZE); 
//cvShowImage("Oimg", RgbImg);
outImg  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);
outImgh  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);
outImgs  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);
outImgv  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);
outH  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);
outS  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);
outV  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 1);

height = RgbImg->height;
width = RgbImg->width;
channels = RgbImg->nChannels;
imHSV = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 3);

h_plane  = cvCreateImage(cvGetSize(RgbImg), 8, 1);
s_plane  = cvCreateImage(cvGetSize(RgbImg), 8, 1);
v_plane  = cvCreateImage(cvGetSize(RgbImg), 8, 1);
alpha  = cvCreateImage(cvGetSize(RgbImg), IPL_DEPTH_8U, 3);


cvCvtPixToPlane(imHSV, h_plane, s_plane, v_plane, 0 );

// Create trackbars
cvNamedWindow("H", CV_WINDOW_AUTOSIZE); 
cvShowImage("H", h_plane);
    cvCreateTrackbar( "High_h", "H", &high_switch_h, 255, switch_h_callback_h );
    cvCreateTrackbar( "Low_h", "H", &low_switch_h, 255, switch_h_callback_l );
    cvCreateTrackbar( "High_s", "H", &high_switch_s, 255, switch_s_callback_h );
    cvCreateTrackbar( "Low_s", "H", &low_switch_s, 255, switch_s_callback_l );
    cvCreateTrackbar( "High_v", "H", &high_switch_v, 255, switch_v_callback_h );
    cvCreateTrackbar( "Low_v", "H", &low_switch_v, 255, switch_v_callback_l );

    while( 1 ) {    
        cvThreshold(h_plane,outImgh, low_switch_h ...
2013-05-04 11:21:20 -0500 asked a question No symbols are loaded for any call stack frame. The source code cannot be displayed.

hi guys please can anybody help me. I'm suffering, every time i debug my c++(opencv) code i have an exception and then the following msg:

No symbols are loaded for any call stack frame. The source code cannot be displayed.

what's the matter? and how can i solve it. my partnership have executed the same code but had no errors or exceptions

2013-04-26 09:25:41 -0500 commented question Adding three images in opencv

i tried to use bitwise function but it doesn't work

2013-04-26 09:07:45 -0500 commented answer Adding three images in opencv

thank you a lot. as i said I'm new in opencv i want the three images (huemask ,saturation mask and value mask) to be one image .in this case should i use cvmerge or mixchannels?

2013-04-26 09:02:36 -0500 commented answer Adding three images in opencv

for sure thank u for ur appreciation

2013-04-26 09:01:31 -0500 commented answer Adding three images in opencv

actually I'm new in opencv and c++ i started using it since 2 days only. about using old api my supervisor advised me to use opencv 2.2.0 with visual studio 2006 and i did. hope that was a good answer. i really need help and i wish if u can help me. can i paste my full code here to tell whats the matter?

2013-04-26 08:06:22 -0500 edited question Adding three images in opencv

hi everybody i wanna ask if there is a way to add three images to gather (i wanna convert matlab code into opencv this is the statement in matlab:( greenObjectsMask = hueMask & saturationMask & valueMask;) )

the following is the code in opencv :

IplImage* hueMask = cvCreateImage( cvGetSize(h_plane), 8, 3 );
IplImage* saturationMask = cvCreateImage( cvGetSize(s_plane), 8, 3 );
IplImage* valueMask = cvCreateImage( cvGetSize(v_plane), 8, 3 );
IplImage* yellow = cvCreateImage( cvGetSize(v_plane), 8, 3 );
 cvThreshold( h_plane, h_plane,0.09*255,0.14*255,CV_THRESH_BINARY);
 cvThreshold( s_plane, s_plane,0.1*255,1.0*255,CV_THRESH_BINARY);
 cvThreshold( v_plane, v_plane,0.1*255,1.0*255,CV_THRESH_BINARY);
 cvShowImage("h mask ",h_plane );
 cvShowImage("s mask ",s_plane );
 cvShowImage("v mask ",v_plane );

i wanna to add the huemask, saturationmask and valuemask in one image called greenObjectsMask waiting for help thank u all