O'Reilly logo

Visual Media Processing Using MATLAB Beginner's Guide by George Siogkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – visible spectrum from a multiband image of Rio

We will use the file rio.lan for this example and try to manipulate its visible spectrum bands. The file contains seven bands, from which the third contains red color, the second green one, and the first blue one. Let's use the following steps to import and process just these three bands in MATLAB:

  1. First, we load the multiband image using multibandread (imread could still be used, in the possible case, where the multiband image is of type .tif):
    >> image = multibandread('rio.lan', [512, 512, 7],...
    'uint8=>uint8',128, 'bil', 'ieee-le', {'Band','Direct',[3 21]});
  2. The previous step saves the red, green, and blue bands of the image in a matrix with 8-bit integer values, which can be now ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required