This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem WIth Sobel

Hi

I am using Sobel library function on Video Preview example on DM6437 but  I am not getting desired output . As the sobel only works on upper half of the frame and leave lower half of frame as it is.  Also, the upper half of the screen is not aligned with lower half of the screen.  I am including img_sobel.h header file and therby using function:

void IMG_sobel(const unsigned char *in_data, unsigned char  *out_data, short cols, short rows );

and passing parameters as:

IMG_sobel((void *)(frameBuffPtr->frame.frameBufferPtr),(void *)(frameBuffPtr->frame.frameBufferPtr), 480, 720);

and that is all I am using in my Video Preview.

Can somebody suggest the solution?

Thanks in advance

Jalwinder

  • Hi

    I just came to know that If I increase the rows and colums dimentions to 980 and 690 i.e

    IMG_sobel((void *)(frameBuffPtr->frame.frameBufferPtr),(void *)(frameBuffPtr->frame.frameBufferPtr), 980, 690);

    then i get full screen output but the output repeat the frame objects on display i.e a single face is displaying as 3 faces. Also the ouput is having green background with light green face color, Is that how sobel should display frame after edge detection?

    Please guide me..

    thanks

    Jalwinder

  • Hey,

     

    I believe you may have the dimensions backwards, it is columns and then rows, so you should put 720,480 I think.

    Additionally, I am not sure about this, but when I implemented this filter, I only sent it the y values.