how to resize an object in binary image ?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 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 commentaires
ElizabethR
le 20 Mar 2016
Walter Roberson
le 20 Mar 2016
props = regionprops(YourBinaryImage, 'Image');
extracted_image = props.Image;
smaller_extracted = imresize(extracted_image, [64 64]); %example output size
ElizabethR
le 21 Mar 2016
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


