Hi,
I tried to use the Sobel function from the IMGLIB with my EVMDM642/camera/display. However, all I get is blank on the display. The relevant codes are as below (modified from example codes):
while(1){
/* copy data from capture buffer to array to display buffer */
for(i = 0; i < numLines; i++) {
DAT_copy(capFrameBuf->frame.iFrm.y1 + i * capLinePitch, Array1, disLinePitch);
CACHE_wbInvAllL2(CACHE_WAIT);
IMG_sobel_c(Array1, Array2, cols, rows);
DAT_copy(Array2, disFrameBuf->frame.rpFrm.buf + i * disLinePitch, disLinePitch);
CACHE_wbInvAllL2(CACHE_WAIT);
}
...
}
I also defined these locally somewhere up in the function:
#define cols 640
#define rows 480
and globally:
unsigned char Array1[640 * 480];
unsigned char Array2[640 * 480]={0}; /*intitialize coz Sobel produce 640 x 438 */
Anyone knows why this happens?
Thanks.
Hanief