I'm trying to use `imregister? to align two images. I went through the MATLAB tutorial and have been searching for the error I'm receiving but can't find anything.
Input:
movingRegistered = imregister(moving, fixed, 'affine', optimizer, metric);
This is the error
Error using imregtform>parseInputs (line 252) The value of 'MovingImage' is invalid. All dimensions of the moving image should be greater than 4.
Error in imregtform (line 123) parsedInputs = parseInputs(varargin{:});
Error in imregister (line 119); tform = imregtform(varargin{:});"
Thanks for any help