MATLAB: How to find the pixel exact location

location of pixelMATLAB

hello, i have binary image and now i have to process where the image pixel value is one now how to find that and i want the exact location of that single pixel which have value 1?
pls answer me
thank you Vivek Asthana

Best Answer

[row, column] = find(YourBinaryImage == 1);
There are also mechanisms using regionprops()