mirror of
https://github.com/opencv/opencv.git
synced 2026-11-29 21:07:06 -06:00
Laplacian picked the kernel type as max(CV_32F, ddepth, sdepth), which is CV_16F for a CV_16F image because CV_16F > CV_64F. The 3x3 kernel was then allocated as CV_16F (18 bytes) and filled with 9 doubles. Use CV_64F when the source or destination is CV_64F and CV_32F otherwise, so filter2D rejects the unsupported depth without the overflow. Add an Imgproc_Laplacian regression test.