Select a polygonal region of interest, similar to the roipoly function present in the image processing toolbox from MATLAB.