getting the coordinates of green colored portion.
Show older comments
i have an image. i have extracted out the green coloured portion from it. now i want the coordinates of that green area. how can i do that?
Accepted Answer
More Answers (1)
If you have matrix X of zeros and ones, where the ones mark the the pixels of the green object, you can extract its x and y coordinates using
[y, x] = find(X);
Categories
Find more on Blue in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!