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 MxNx4
Then each band can be simply separated as:
Band1=I(:,:,1);
Band2=I(:,:,2);
Band3=I(:,:,3);
Band4=I(:,:,4);
Related Question