The union of 2 images
Show older comments
Let's say I have an image called A and another constant image of the same size how do I get the set union of those 2 images : the union should be of the same size as image A
Note: when I use union function it gives me an error (A and B must be vectors or 'rows' must be specified.)
Accepted Answer
More Answers (1)
Image Analyst
on 28 Oct 2013
Maybe you mean something like this:
% Find dark pixels.
binaryImage = skeletonImage < 50; % Or whatever intensity you want.
% Replace dark pixels with pixels from image B.
C_Image = skeletonImage; % Initialize
C_Image(binaryImage) = B_Image(binaryImage); % Replace.
1 Comment
John Snow
on 28 Oct 2013
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!