I want to run this image segmentation program.
When attempting to run growcut_test I get the following error:
>> growcut_testSubscript indices must either be real positive integers or logicals.Error in growcut_test (line 7)subplot(2,2,1), imshow(img);
This is line 7 and what is around it:
%-- Load image and seeds
img = imread('lotus.png');labels = double(imread('labels.png'))-1;subplot(2,2,1), imshow(img);subplot(2,2,2), imshow(labels,[]);subplot(2,2,3), imshow(img);
Any ideas?
Best Answer