With the following code I get the error message To RESHAPE the number of elements must not change.
[Ilabel, num] = bwlabel(Ifill);
disp(num);
Iprops = regionprops(Ilabel);
Ibox = [Iprops.BoundingBox];
Ibox = reshape(Ibox,[4,50]);%Error using reshape .
imshow(Ibox)
Can anyone help me?