how to resize an object in binary image ?
Show older comments
i try to resize (minimize) an object in binary image, but I get the whole picture is to be small. even though I just wanted to minimize only its object. please help me. thanks
Accepted Answer
More Answers (1)
Walter Roberson
on 20 Mar 2016
0 votes
You need to extract the object first and imresize() on the extracted part. Consider using regionprops with the Image property to get the extracted object.
3 Comments
ElizabethR
on 20 Mar 2016
Walter Roberson
on 20 Mar 2016
props = regionprops(YourBinaryImage, 'Image');
extracted_image = props.Image;
smaller_extracted = imresize(extracted_image, [64 64]); %example output size
ElizabethR
on 21 Mar 2016
Categories
Find more on Convert Image Type 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!

