MATLAB: 8 bit of size 256*256 grey image for testing

famous demo imagesImage Processing Toolbox

hi every one please I want copy of 8 bit of size 256*256 grey image for such as lena, Baboon, Peppers

Best Answer

imread() the color image, rgb2gray() it, imresize() it to 256 x 256 or imresize() it to 256 on the shorter side and imcrop() the rest of the longer side away if the image is not originally square.