How to fuse rgb image with gray image ?

4 次查看(过去 30 天)
MMSAAH
MMSAAH 2020-12-23
评论: MMSAAH 2020-12-23
Helle everyone,
I want to fuse an rgb image (labeled_regions) with gray image (orig). I tried ysing imfuse as the code shown here but I didn't got anything. I've tried also the hold hold off the same problem.
Please could any one help me solving this issue?
I will be grateful.
here is my code
figure
imshow(orig,[]);
figure
imshow(labeled_regions,[])
figure
imfuse(orig,labeled_regions,,'blend','Scaling','joint');

回答(1 个)

Walter Roberson
Walter Roberson 2020-12-23
infuse does not display the image.
imshow( imfuse(orig, labeled_regions, 'blend', 'Scaling', 'joint') );
  3 个评论
Walter Roberson
Walter Roberson 2020-12-23
orig = sort(rand(240, 320, 3));
figure
imshow(orig, []);
figure
labeled_regions = sort(randi([0 3], 240, 320),2);
imshow(labeled_regions, []);
figure
imshow( imfuse(orig, labeled_regions, 'blend', 'Scaling', 'joint') );
MMSAAH
MMSAAH 2020-12-23
I have added the [] in imshow. Now It works. Thank you .
imshow(imfuse(orig,labeled_regions,'blend','Scaling','joint'),[]);

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by