MATLAB: How to get pixel coordinates coordinates I have a image and have drawn,roipoly command,now i want to get the pixel coordinates,plz tell how to get these coordinates Best Answer BW = roipoly(...);[x,y] = find(BW); Related SolutionsMATLAB: Coordinates pixel (cpselect) I would recommend using the function ginput instead, for example:I = imread('rice.png');imshow(I) %This is necessary for the ginput function expects a figure window to be open.[x y] = ginput(n) %Where n is the number of points you need to interactively select.and the x and y coordinates (of the pixel selected) will be stored in the vectors x and y.Hope this helps! MATLAB: Get the position of specifed pixels convert the image to black and white, "label" the image, and use regionprops() to find the bounding box of the object. Related QuestionGet the coordinates of a pixelHow to pixel coordinate for a given imageFind pixel intensity with coordinates
Best Answer