How can I prevent my output from from becoming PINK colored?

1 回表示 (過去 30 日間)
Shubham Bose
Shubham Bose 2019 年 2 月 7 日
コメント済み: Shubham Bose 2019 年 2 月 7 日
Intended Output: Hybrid images.
Current Output: This
As you can see the whole image has a very heavy pink tint on it. My simple code is this:
img1 = imread('Dataset\05.jpg');
img2 = imread('Dataset\06.jpg');
%LPF starts
LPF = imgaussfilt(img1, 10);
%LPF ends
%HPF starts
g = fspecial('guassian');
med = img2 - imgaussfilt(img2, 8, 'FilterDomain', 'spatial');
HPF = imfilter(med, g);
%HPF ends
J7 = imresize(HPF, 1.2); %resize image
J8i = imresize(LPF, 1);
J8 = flip(J8i,2); %flip second image
out = imfuse(J7,J8); %overlap images
imshow(out);

採用された回答

Walter Roberson
Walter Roberson 2019 年 2 月 7 日
methodAlgorithm used to combine images
'falsecolor' (default) | 'blend' | 'diff' | 'montage'
Algorithm used to combine images, specified as one of the following values.
MethodDescription
'falsecolor'Creates a composite RGB image showing A and B overlaid in different color bands. Gray regions in the composite image show where the two images have the same intensities. Magenta and green regions show where the intensities are different. This is the default method.

その他の回答 (0 件)

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by