I have to implement a Harris detector and am not quite sure about the following detail regarding the Sobel filter to obtain the image derivative.
When applying the Sobel filter to a Grayscale image, I might get negative intensity values. Do I need to convert the Image back to a Matrix of only positive values before I calculate the Harris Matrix for each pixel or am I supposed to use the values as they are?
I have to implement a Harris detector and am not quite sure about the
Share
I don’t think you need to restrict it to only positive values.
You can look at VLFeat‘s Harris corner detection implementation (Matlab/C source included). It’s in the toolbox directory: vl_harris.m