This time, we will not import just the bands belonging to the visible spectrum, but all seven bands. We will play around a little bit with the resulting images, trying to justify the importance of the bands. Let's start:
First, we will import our image, but this time without specifying just three channels:
>> multi = multibandread('rio.lan', [512, 512, 7],... 'uint8=>uint8',128, 'bil', 'ieee-le');
To prove that we have indeed loaded all seven channels, let's check the size of our resulting matrix:
>> size(multi)
The output of the previous code is as follows:
ans = 512 512 7
Since we have a matrix containing seven bands, let's make our RGB image using another method. We know the mirroring of color channels to bands is R:third, G:second, and B:first, so we will use an appropriate concatenation method, followed by the same contrast adjustment technique as before:
>> rgb = cat(3,multi(:,:,3),multi(:,:,2),multi(:,:,1));...