Clear Filters
Clear Filters

How to merge two segmented parts of same Image???

2 views (last 30 days)
I segmented ROI part of an image and applied some operation on ROI and Non-ROI separately. Now, after that, I want to merge these parts back to show the reconstructed image. How can I do this? Please provide a Matlab function to solve this problem. Thanks in advance...

Accepted Answer

Image Analyst
Image Analyst on 11 Nov 2018
Edited: Image Analyst on 11 Nov 2018
Just OR them together:
finalBinaryImage = binaryImage1 | binaryImage2;
  6 Comments
Image Analyst
Image Analyst on 6 Mar 2020
That is the gray scale image that you want to mask. I called mine grayImage. What did you call your variable?
Mouaz Alsamman
Mouaz Alsamman on 9 Jun 2021
can you share the code on how to merge the two ROI images ?

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!