Closed dodoma closed 8 years ago
Here is my x.jpg https://www.dropbox.com/s/cjgdr3iworurk12/x.jpg?dl=0
sobel operator's default data type is 32bit signed integer: https://github.com/liuliu/ccv/blob/stable/lib/ccv_basic.c#L14
Which is more correct considering the range will be between -255 to 255. You can force it to use CCV_8U by calling:
ccv_sobel(mta, &mtb, CCV_8U, 0, 1);
On the other hand, you can also call ccv_visualize: http://libccv.org/lib/ccv-util/#ccvvisualize to get the desired image.
It's ok now. Seems I need some basic concept learning.
The ccv_sobel() on a ccv_read() dense matrix don't act with expect on my rasperberry pi.
here is my code:
The opencv's version woks ok:
$file x.jpg output:
y.jpg is about 4 times larger than x.jpg while z.jpg almost same as x.jpg.
seem's mtb->step = 4 * mta->step.