Automatic ROI selection in image

Hi every one...
I am doing image processing project here i need automatic roi selection like i have segmented the
image in that i have segmented tumor i need to crop automatically. for this any ready made matlab code
or any help is fine.
Thanks in advance...

Respuestas (1)

Image Analyst
Image Analyst el 20 de En. de 2014

1 voto

See my Image Segmentation Tutorial. It goes over all that.

3 comentarios

Jórdan Venâncio Leite
Jórdan Venâncio Leite el 11 de Mzo. de 2020
Editada: Jórdan Venâncio Leite el 11 de Mzo. de 2020
Image Analyst, you again! See if you can help me with this issue:https://www.mathworks.com/matlabcentral/answers/510421-creation-of-an-automatic-polyline
It's not so difficult.Thank you!!
Anita De Pisi
Anita De Pisi el 1 de Sept. de 2020
Hi! I tried to do the same thing with my image but it doesn't work, I think because the background does not differ at all from the objects. How could I solve this? Thanks for your help.
Anita, first of all try a noise reduction method like median filter medfilt2(), or non-local means imnlmfilt(). Then I'd get an average vertical profile and divide the image by it to compensate for vertical shading
verticalProfile = sum(grayImage, 2);
verticalProfile = verticalProfile / max(verticalProfile); % Normalize 0-1
[rows, columns, numColorChannels] = size(grayImage)
shadingImage = repmat(verticalProfile(:), 1, columns);
imshow(shadingImage, []);
flattenedImage = double(grayImage) ./ shadingImage;
Then try thresholding the flattened image. Or if that doesn't work you can play around with CLAHE : adapthisteq() to flatten the background shading.

Iniciar sesión para comentar.

Preguntada:

el 20 de En. de 2014

Comentada:

el 2 de Sept. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by