how to resize an object in binary image ?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 20 de Mzo. de 2016
0 votos
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 comentarios
ElizabethR
el 20 de Mzo. de 2016
Walter Roberson
el 20 de Mzo. de 2016
props = regionprops(YourBinaryImage, 'Image');
extracted_image = props.Image;
smaller_extracted = imresize(extracted_image, [64 64]); %example output size
ElizabethR
el 21 de Mzo. de 2016
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


