how to resize an object in binary image ?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Walter Roberson
il 20 Mar 2016
0 voti
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 Commenti
ElizabethR
il 20 Mar 2016
Walter Roberson
il 20 Mar 2016
props = regionprops(YourBinaryImage, 'Image');
extracted_image = props.Image;
smaller_extracted = imresize(extracted_image, [64 64]); %example output size
ElizabethR
il 21 Mar 2016
Categorie
Scopri di più su Convert Image Type in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


