logo       

Re: CvSobel: msg#00257

lib.opencv

Subject: Re: CvSobel

Hello,

>If I run following code...

> IplImage* derivx = cvCreateImage(cvSize(width,height),IPL_DEPTH_16S,1);
> IplImage* scaledderivx = cvCreateImage(cvSize(width,height),IPL_DEPTH_8U,1);
> cvSobel(image2,derivx,1,0);

You have to specify both x and y orders AND the aperture size, like:

cvSobel(image2,derivx,1,0,1) - for x-first-derivatives and
cvSobel(image2,derivx,0,1,1) - for y-first-derivatives.

When the aperture size is 1, a three-sized window is employed but no
gaussian blurring is performed in the result. Try that ...

Leonardo

--
Leonardo M. B. Claudino
Laboratorio Metasys/DCC-UFMG
Nucleo de Processamento Digital de Imagens NPDI/DCC-UFMG
Laboratorio de Inteligencia e Tecnologia Computacional LITC/CPDEE-UFMG






Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@xxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise