Using the laplacian filter with different border types

asked 2013-01-24 08:40:06 -0500

VoodooCode gravatar image

updated 2013-01-30 04:16:21 -0500

Hello,

why does the following program work only for the border types: 0,1,2,4,16?

The bordertypes 3(Wrap) and 5(Transparent) cause a crash.

image = cv::imread("demo.png");

Laplacian(image, image, -1, 1, 1.0, 0.0, BORDER_ISOLATED);

imshow("Test", image);
waitKey();

Regards, VoodooCode

edit retag flag offensive close merge delete