I have a band-sequential data file, 'data.img', that has an unequal number of rows and columns. When I execute the following command:
g = multibandread('data.img',[96 64 6],'uint8',0,'bsq','ieee-le',{'Column','Direct',1});
I receive the following error:
??? Error using ==> reshape To RESHAPE the number of elements must not change. Error in ==> multibandread>readbsqdata at 310 im(:,c,:) = reshape(data,size(im(:,c,:))); Error in ==> multibandread at 99 im = readbsqdata(info);
This error occurs when the interleave input argument is 'bsq', the number of rows and columns in the data file are not equal, and the subsetting parameter uses either 'Row' or 'Column' for the dimension.
Best Answer