Impoly to choose all the ROI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ann G
el 2 de Oct. de 2015
Comentada: Image Analyst
el 6 de Oct. de 2015
Hello! I would like to ask, how can I use impoly to choose all the ROI and not just the polygon that is around it!
0 comentarios
Respuesta aceptada
Adam
el 2 de Oct. de 2015
Editada: Adam
el 2 de Oct. de 2015
mask = createMask( hROI, hIm );
should give you a binary mask for the region, where hROI is your impoly and hIm is the handle of image on which it was drawn.
5 comentarios
Image Analyst
el 6 de Oct. de 2015
This will apply the mask to the original image to erase the original pixels everywhere outside the mask:
% Initialize output to be same as input.
maskedImage = grayImage;
% Now erase pixels outside the mask.
maskedImage(~mask) = 0;
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!