Problems filtering image with prewitt
Prewitt kernel is rotated 180 degree between correlation and convolution. 

You can check this link: http://www.equalis.com/blogpost/731635/129540/Convolution-and-Correlation-in-Image-Processing