MATLAB: How to extract the coordinates of a colored arrow on an otherwise black and white image

coordinatesdigital image processinggrayscaleimageimage analysisimage processingimage segmentationimpixelMATLABmedical imagingrgb

I have a black and white image (not grayscale) with a green arrow on it. I need to automatically get the coordinates of this line without using the impixel() function.

Best Answer

mask = YourImage(:,:,2) >= 200 & YourImage(:,:,1) <= 20; %Green presence but not much red, must be green arrow
[r, c] = find(mask);
Related Question