Ask Your Question

shelly's profile - activity

2020-11-15 01:25:47 -0500 received badge  Popular Question (source)
2016-04-20 10:53:16 -0500 received badge  Notable Question (source)
2015-10-26 11:04:48 -0500 received badge  Student (source)
2015-01-06 10:56:46 -0500 received badge  Popular Question (source)
2013-04-08 16:02:57 -0500 asked a question Drawing Circles around objects

image description

Good evening,

I got a good photographic result of my flower objects and now I want to draw one hollow circle (with the minimum radius) around each of the blackend objects that represent the flowers (see the right picture attached hereby).

Data is saved into the array only when the pixel is black. The main arrays on my program are: array for heigt and array for width.

The way data is saved into my arrays does not let me differ between the black objects as a whole - data recorded for an object is scattered inside the array on a basis of width sequence (with incrementing the height as a row is ended).

The left picture shows a sequence of blue circles drawn around each blackend pixel (not per object).

I would be happy if you could suggest me a solution for the above task, as mentioned on the first paragraph above.

Best regards,

Shelly

2013-04-08 13:52:57 -0500 commented answer A cvblob download problem

This website Intended for Linux and I have windows 7...

2013-03-22 15:24:33 -0500 commented answer A cvblob download problem

Hi, I was building cv blob.lib and opened a new project called "test", but when I started to include directories setup, I couldn't include G:\Other\cvblob\cvblob_\cvblob" because I couldn't find out this source. I saw you use cvblob. How did you install this library?

2013-03-22 15:09:37 -0500 commented question A cvblob download problem

I know that cvblob is a separate library of opencv but I need to download it. You know what's worng in this guide or where I can ask this question? I have vishual stdio 2010 and Windows 7.

2013-03-22 02:16:37 -0500 asked a question A cvblob download problem

Hello People, I tried to use this guide to install cvblob.

http://www.technolabsz.com/2012/07/cvblob-in-windows7-using-ms2010.html

I was successful installing cvblob.lib on my "opencv" directory. I have encountered a problem on the next step - "Blob test example setup": on step 1 the first folder on the list "G:\Other\cvblob\cvblob_\cvblob" does not exist in my pc, so I couldn't upload it. As a result – I could not compile the test and I received errors. I want to emphasize that I could upload all the other directories on the list, so the problem is to find out why "G:\Other\cvblob\cvblob_\cvblob" is not in my pc and how to create it.

I would be grateful if anyone could show me how to solve the problem.

Best regards,

Shelly.

2013-03-03 01:00:47 -0500 commented answer how to download cvblob for windows

thank you! I will try it

2013-03-01 15:28:52 -0500 asked a question how to download cvblob for windows

Hello,

I have a visual studio 2010 running on Win7. Does anybody have a guide on how to create cvblob?

I would appriciate your help.

Shelly

2013-01-14 14:54:14 -0500 asked a question pixel value and position

Hi OpenCV. I need to know the location and color of each pixel in my image. I tried this program:

CvScalar pixel;

for (i=0;i<(src->height);i++)

{

for (j=0;j<(src->width);j++)

{

    //printf ("i=%d,j=%d\n",i,j);
    pixel=cvGet2D(src,i,j);
    printf("B=%f, G=%f, R=%f\n",pixel.val[0],pixel.val[1],pixel.val[2]); 
    printf ("hight=%d\n",src->height);

}

} but it returns me only the pixel values ​​of half of the last line of the image sampled. What's the problem in my software? Please Help Me :)

2013-01-14 14:51:55 -0500 asked a question pixel position and value hrjrjr

Hi OpenCV. I need to know the location and color of each pixel in my image. I tried this program:

CvScalar pixel;

for (i=0;i<(src->height);i++)

{

    for (j=0;j<(src->width);j++)

    {

        //printf ("i=%d,j=%d\n",i,j);
        pixel=cvGet2D(src,i,j);
        printf("B=%f, G=%f, R=%f\n",pixel.val[0],pixel.val[1],pixel.val[2]); 
        printf ("hight=%d\n",src->height);

    }

}

but it returns me only the pixel values ​​of half of the last line of the image sampled. What's the problem my software? Please Help Me :)

2012-12-22 10:15:33 -0500 asked a question Histogram Template Matching

Hi OpenCV. I tryed to compare between 2 pictures (Image and Template) and find the area most similiar to the template in the larger image, when I run the program it shows 6 small windows without image inside them. I worked with this webside: http://dasl.mem.drexel.edu/~noahKuntz/openCVTut6.html (look at Template Matching) Please Help Me!

My system:

int main(int argc, TCHAR* argv[])

{

IplImage *f,* f1,*ex[6]; 

int i;

f1 = cvLoadImage( "DSC08221.jpg" );//Image
f= cvLoadImage( "DSC08223.jpg" );//Template



int iwidth = f->width - f1->width + 1;
int iheight = f->height - f1->height + 1;
for(i=0;i<6;++i)
{
    ex[i]= cvCreateImage( cvSize( iwidth, iheight ), 32, 1 );
}

//compare
for(i=0;i<6;++i)
{
    cvMatchTemplate(f, f1, ex[i], i );
    cvNormalize( ex[i], ex[i], 1, 0, CV_MINMAX );

}

cvNamedWindow( "flower");
cvShowImage("flower", f);
cvNamedWindow( "flowers");
cvShowImage("flowers",f1);
cvNamedWindow( "take0t");
cvShowImage("take0t",ex[0]);
cvNamedWindow( "take0i");
cvShowImage("take0i",ex[1]);
cvNamedWindow( "take1t");
cvShowImage("take1t",ex[2]);
cvNamedWindow( "take1i");
cvShowImage("take1i",ex[3]);
cvNamedWindow( "take2t");
cvShowImage("take2t",ex[4]);
cvNamedWindow( "take2i");
cvShowImage("take2i",ex[5]);

cvWaitKey(0);

cvReleaseImage( &f );
cvDestroyWindow( "flower" );
cvReleaseImage( &f1 );
cvDestroyWindow( "flowers" );
cvReleaseImage( &ex[0] );
cvDestroyWindow( "take0t" );
cvReleaseImage( &ex[1] );
cvDestroyWindow( "take0i" );
cvReleaseImage( &ex[2] );
cvDestroyWindow( "take1t" );
cvReleaseImage( &ex[3] );
cvDestroyWindow( "take1i" );
cvReleaseImage( &ex[4] );
cvDestroyWindow( "take2t" );
cvReleaseImage( &ex[5] );
cvDestroyWindow( "take2i" );

return 0;

}

2012-12-03 10:26:30 -0500 commented answer capture vidio from 2 cameras

Thank you! It is working. But when I stop the program, the problem is coming back...

2012-12-03 10:14:27 -0500 commented answer capture vidio from 2 cameras

You have more ideas?

2012-12-03 09:54:15 -0500 commented answer capture vidio from 2 cameras

It isn't works. but thank you :)

2012-12-02 16:03:09 -0500 asked a question capture vidio from 2 cameras

Hi OpenCV. I tryed to capture vidio from 2 cameras but only one camera works, and the other one shows a green screen. Please Help Me!

My system:

#include stdafx.h
#include highgui.h
#include stdio.h 
#include dshow.h

int main()
{ 
CvCapture* capture1 = cvCaptureFromCAM(CV_CAM_ANY);
CvCapture* capture2 = cvCaptureFromCAM(CV_CAM_ANY);

if ( !capture1 )
{
fprintf( stderr, "ERROR: capture1 is NULL \n" );
getchar();
return -1;
}

if ( !capture2 )
{
fprintf( stderr, "ERROR: capture2 is NULL \n" );
getchar();
return -1;
}

cvNamedWindow( "cam1");
cvNamedWindow( "cam2");

while (1)
{    
IplImage* frame1 = cvQueryFrame( capture1 );
IplImage* frame2 = cvQueryFrame( capture2 );
if ( !frame1 )
{
fprintf( stderr, "ERROR: frame1 is null...\n" );
getchar();
break;
}

if (!frame2 )
{
fprintf( stderr, "ERROR: frame2 is null...\n" );
getchar();
break;
}

cvShowImage( "cam1", frame1 );
cvShowImage( "cam2", frame2 );
if ( (cvWaitKey(10) & 255) == 27 ) break; 
}
cvReleaseCapture( &capture1 ); 
cvDestroyWindow( "cam1" );
cvReleaseCapture( &capture2 );

cvDestroyWindow( "cam2" );
return 0;
}