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

1 次查看(过去 30 天)
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?

回答(1 个)

Image Analyst
Image Analyst 2014-2-10
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 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by