getting the coordinates of green colored portion.
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (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);
Categorías
Más información sobre Region and Image Properties en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!