I need a 256x256 pixel image to use it in my project. I downloaded images from the internet, but when I read the image, it stored in a 256x256x3 variable (color image format PET images). the NSCT fusion algorithms gives (dimension of matrices error)
What can I do? here is the code to read the image
img1=imread('pet.jpg');
img2=imread('ct.jpg');