Obtain all Data Cursor Values

2 views (last 30 days)
I've been a long time MatLab user but at a basic level only. I am trying to do some image analysis which will utilize a webcamera to capture some images. These images will then go under boundary recognition which will provide me with a figure of where the boundary was found. Specifically, the objective is to detect flowers and weeds. I was able to find references online on how to do this and found a file on exchange which allows me to obtain the boundaries. However, I am unable to get the data points of these boundaries. For example, MatLab is able to plot the boundary of a flower and display the boundary only on a white background. How do I go about obtaining the x and y coordinates of the entire boundary into the workspace? I need to do this so that I can determine the exact location the flower was found and can then send the signal to arduino. Which brings me to my second question: how do I interface MatLab with Arduino? I found the ArduinoIO package on the mathworks site - is that all I need?

Accepted Answer

Walter Roberson
Walter Roberson on 22 Sep 2011
regionprops() can do it, as can bwboundaries()
  1 Comment
Jake Bolanski
Jake Bolanski on 28 Sep 2011
Thank you, regionprops() was what I needed.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!