Ask Your Question

jkjk24's profile - activity

2018-10-09 13:11:25 -0600 commented question Pyramid Blending with Single input and Non-Vertical Boundary

Thanks for your input. I am new in this field, so I am not sure if any existing blending algorithm would fit in this cas

2018-10-06 17:19:22 -0600 commented question Pyramid Blending with Single input and Non-Vertical Boundary

Thank you for your comment. I tried doing that (explained by my 2nd paragraph). The output is the same as the original i

2018-10-06 17:17:50 -0600 commented question Pyramid Blending with Single input and Non-Vertical Boundary

I tried doing that (explained by my 2nd paragraph). The output is the same as the original image

2018-10-03 20:05:45 -0600 received badge  Organizer (source)
2018-10-03 20:01:40 -0600 edited question Pyramid Blending with Single input and Non-Vertical Boundary

Pyramid Blending with Single input and Non-Vertical Boundary Hi All, Here is the input image. Say you do not have the

2018-10-03 19:57:13 -0600 asked a question Pyramid Blending with Single input and Non-Vertical Boundary

Pyramid Blending with Single input and Non-Vertical Boundary Hi All, Here is the input image. Say you do not have the

2018-08-16 19:42:09 -0600 edited question Laplacian output has many white dots (noise)

Laplacian output has many white dots (noise) Hi, I applied Gaussian, and then laplacian to images. The output has many

2018-08-16 19:42:09 -0600 received badge  Editor (source)
2018-08-16 19:37:33 -0600 received badge  Supporter (source)
2018-08-16 19:37:32 -0600 marked best answer Laplacian output has many white dots (noise)

Hi,

I applied Gaussian, and then laplacian to images. The output has many white dots. Please check the following 2 outputs.

image description

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!

EDIT: The above code is shown to be valid by LBerger's post. My problem is due to the normalization of the 2 output images by their sum. After division, some pixels tend to infinity. Shown by my following code here

for (size_t i = 0; i < images.size(); i++) {    
    contrast_sum = constrast[i]
}
for (size_t i = 0; i < images.size(); i++) {
    contrast[i] /= contrast_sum;
}
2018-08-16 19:37:32 -0600 received badge  Scholar (source)
2018-08-16 19:37:22 -0600 commented answer Laplacian output has many white dots (noise)

Hi LBerger, Thank you so much for the help. I realized the problem is with the latter part of the code. I normalized the

2018-08-15 20:52:15 -0600 asked a question Laplacian output has many white dots (noise)

Laplacian output has many white dots (noise) Hi, I applied Gaussian, and then laplacian to images. The output has many

2018-07-17 20:38:18 -0600 answered a question 1 channel images using Merge Mertens

by reading the source code, greyscale inputs work fine too... basically same behaviour as expected

2018-07-11 18:07:33 -0600 received badge  Enthusiast
2018-07-03 22:23:25 -0600 asked a question 1 channel images using Merge Mertens

1 channel images using Merge Mertens Hi, I want to implement exposure fusion on black/white images (1 channel 8 bits).