calculate pixel

1 view (last 30 days)
Rahma Yeni
Rahma Yeni on 17 Mar 2012
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);
  1 Comment
Rahma Yeni
Rahma Yeni on 17 Mar 2012
Thank you @Image Analyst.. :)

Sign in to comment.

More Answers (0)

Categories

Find more on Data Exploration in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!