iptPointerManager error when using roipoly (MATLAB)

146 views Asked by At

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.

1

There are 1 answers

0
guyts On BEST ANSWER

Resetting the path using restoredefaultpath worked.