Convert white pixels in a binary image to coordinates

This function forms coordinate array [x,y] of white pixels based on user defined range.
127 Downloads
Updated 13 Apr 2018

View License

Suppose a binary image encompasses a square of 1 cm x 1cm, then providing the xlim as [0,1] and ylim as [0,1], this function converts all white pixel from the input image pixel coordinate to real physical coordinate [c1,c2].

Cite As

Sathyanarayan Rao (2024). Convert white pixels in a binary image to coordinates (https://www.mathworks.com/matlabcentral/fileexchange/66901-convert-white-pixels-in-a-binary-image-to-coordinates), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Get Started with Image Processing Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0