calculate pixel

Hello... how I can calculate the number of pixels that I created using ginput...??? thanks..

 Accepted Answer

Image Analyst
Image Analyst on 17 Mar 2012
Get the length of the x or y array that was returned.
[x,y] = ginput();
numberOfPoints = length(x);

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!