MATLAB Answers

Naim
0

I want to dissect one black, oval-shaped part of a photo keep the contents inside

Asked by Naim
on 16 Jun 2017
Latest activity Answered by Ankita Nargundkar on 21 Jun 2017
See attached photos for reference. What functionality does MATLAB have for detecting black space and zeroing in on what's inside that space?
Thanks for your help.

  0 Comments

Sign in to comment.

1 Answer

Answer by Ankita Nargundkar on 21 Jun 2017

See attached M file for an example of one way to approach this problem. If you want to get a perfect oval, look at 'regionprops' to extract that sort of information from the binary image or the connected components structure ('cc').

  0 Comments

Sign in to comment.