Storing and accessing the heigh and width of an image using 'size' in Matlab -
Storing and accessing the heigh and width of an image using 'size' in Matlab -
i need height , width of image in matlab. next lines that.
rgbimage = imread('peppers.bmp'); disp(size(rgbimage));
output: image size: 69 100 3
next wanted print(store) 1 of them. did
imgsize=size(rgbimage); disp(imgsize(0));
which throws me next error: 'attempted access imgsize(0); index must positive integer or logical.'
what doing wrong?
matlab not 0-indexed. arrays indices start @ 1 need 'disp(imgsize(1))'
image matlab vector indexing
Comments
Post a Comment