Convert image pixels to xy-coordinates

Version 1.0.0.0 (45.2 KB) by Amir
Image OCR to extract points coordinates from the scanned image.
1.7K Downloads
Updated 8 Jan 2016

View License

The provided source code gets an input image (black object pixels on white background, e.g. an scanned plot with black ink on a white paper). The output is xy-coordinates of all points/pixels in the image, therefore the image is converted to coordinates of points and it is possible for re-plotting the image of plot. In other words, the provided function is an OCR for scanned plot to extract the image points coordinates.
example 1:
Im = imread('./Images/Plot.png');
CoordinateMatrix = pic2points(Im);
scatter(CoordinateMatrix (:,1), CoordinateMatrix (:,2),'.');

Cite As

Amir (2024). Convert image pixels to xy-coordinates (https://www.mathworks.com/matlabcentral/fileexchange/54799-convert-image-pixels-to-xy-coordinates), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Convert Image Type 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!

pic2points/

Version Published Release Notes
1.0.0.0