how can i detect triangle
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ahmad Jadoon
el 12 de Jun. de 2016
Comentada: Ahmad Jadoon
el 13 de Jun. de 2016
how can i detect green colour triangle from pic
2 comentarios
Respuesta aceptada
Image Analyst
el 12 de Jun. de 2016
You can segment out that green triangle using either color or shape - your choice. I'm attaching demos for each. Feel free to adapt as needed.
3 comentarios
Image Analyst
el 13 de Jun. de 2016
Don't use for loops and simply vectorize it. Get rid of the size() and two for loops and simply have this:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Get pixels that are greener than they are red or blue.
Triangle = greenChannel > redChannel & greenChannel > blueChannel;
Más respuestas (1)
Muhammad Usman Saleem
el 12 de Jun. de 2016
try these links
1 comentario
Ahmad Jadoon
el 13 de Jun. de 2016
Editada: Ahmad Jadoon
el 13 de Jun. de 2016
Ver también
Categorías
Más información sobre Red en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!