Select points on an image.
pts = imselect(n [, bnd])
Number of maximum points to select, or it could be less by using right click.
optional 1x4 vector [xmin, ymin, xmax, ymax];
Selected points coordinates, axes coordinates returns.
This function allows user to select the up to the maximum points specified in n, or the last points could be selected by using right click. The returned coordinates are in cartesian, which need to be manually converted to image coordinates if required.
S = imread(fullpath(getIPCVpath() + "/images/puffin.png")); imshow(S); pts = imselect(5); | ![]() | ![]() |