MATLAB: Calculate pixel

ginput

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

Best Answer

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