how can I apply an algorithm only to a specific region of interest (ROI) ?

7 vues (au cours des 30 derniers jours)
maria
maria le 10 Fév 2014
Commenté : Image Analyst le 16 Fév 2014
hey, i have chosen a region of interest (roi) and i want to apply an algorithm (filtering and morphological operations) only in the specific area not in the whole image. i tried to make a function that contains all the commands and then apply the function to the image but it didn't work.any ideas how to do that?

Réponses (1)

Image Analyst
Image Analyst le 10 Fév 2014
It's usually done by masking. Do whatever you need to do to get a binary image, then mask it with the ROI image and label and call regionprops. For examples, see the demos I've attached.
  12 commentaires
maria
maria le 16 Fév 2014
ok i figured it out, thanks a lot :)
Image Analyst
Image Analyst le 16 Fév 2014
OK, then can you mark the answer as Accepted to close it out?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by