Hi,
I applied Gaussian, and then laplacian to images. The output has many white dots. Please check the following 2 outputs.
images[i].convertTo(img, CV_32F, 1.0f / 255.0f);
GaussianBlur(img, img, Size(5,5), 0, 0, BORDER_DEFAULT );
if (channels == 3) {
cvtColor(img, gray, COLOR_RGB2GRAY);
}
else {
img.copyTo(gray);
}
Laplacian(gray, contrast, CV_32F);
Could someone please explain why? And how to solve it? Thank you!