MATLAB: How can i separate four bands from a tif image. 4 bandsImage Processing Toolboxsatellite image I have a satellite image with four bands R,G,B and NIR,how can i separate this bands. Best Answer Read the image using imread or geotifread as regular Let's say i issued:I=imread('satimage.tif');then I is of size MxNx4Then each band can be simply separated as:Band1=I(:,:,1);Band2=I(:,:,2);Band3=I(:,:,3);Band4=I(:,:,4); Related SolutionsMATLAB: Tiff Image to Vector For plain Tiff files, imread() the file and then reshape() into a vector.For more complicated Tiff files, you might need to use the Tiff class to read the parts of the file. MATLAB: How to combine three hyperspectral bands into an “RGB” image The ranges of the individual R, G, and B may be way different. You might want to use mat2gray() to equalize them. Or else scale them all to one min and max. Attach a .mat file with A in it if you want more help. Related Question
Best Answer