Search code examples
matlabimage-processingtoolbox

iptPointerManager error when using roipoly (MATLAB)


I'm trying to use roipoly(I) to allow user selection of a region within an image. When I run the example code from MATLAB documentation:

img = imread('eight.tif')
imshow(img)
bw = roipoly(img)

I'm getting the following error:

Undefined function or variable 'iptPointerManager'.

with several other error lines after, but i'm quite convinced that the one above is the issue. I have MATLAB R2016a on Windows 7 with image processing toolbox installed and working.


Solution

  • Resetting the path using restoredefaultpath worked.