Ask Your Question

Revision history [back]

Using the laplacian filter with different border types

Hello,

why does the 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("C:/Users/schere/Pictures/demo.png");

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

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

Regards, VoodooCode

Using the laplacian filter with different border types

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("C:/Users/schere/Pictures/demo.png");

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

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

Regards, VoodooCode

Using the laplacian filter with different border types

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("C:/Users/schere/Pictures/demo.png");
cv::imread("demo.png");

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

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

Regards, VoodooCode