calculate pixel

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

 Risposta accettata

Image Analyst
Image Analyst il 17 Mar 2012

1 voto

Get the length of the x or y array that was returned.
[x,y] = ginput();
numberOfPoints = length(x);

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by