0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
14 Ansichten6 Seiten
This document discusses functions for reading and writing multiband image data from binary files. Multibandread reads interleaved band data and returns a 3D array. Multibandwrite writes a 3D array to a file with options to interleave the bands by line, pixel, or sequentially by entire band. It specifies the interleave method using a string parameter to indicate the ordering of band values in the output file.
This document discusses functions for reading and writing multiband image data from binary files. Multibandread reads interleaved band data and returns a 3D array. Multibandwrite writes a 3D array to a file with options to interleave the bands by line, pixel, or sequentially by entire band. It specifies the interleave method using a string parameter to indicate the ordering of band values in the output file.
This document discusses functions for reading and writing multiband image data from binary files. Multibandread reads interleaved band data and returns a 3D array. Multibandwrite writes a 3D array to a file with options to interleave the bands by line, pixel, or sequentially by entire band. It specifies the interleave method using a string parameter to indicate the ordering of band values in the output file.
rite Multibandread Read band interleaved data from a binary file Syntax
X = multibandread(filename, size, precision, offset, interleave, byteord
er) X = multibandread(...,subset1,subset2,subset3)
This function definesbandas the third dimension in a 3-D array, as
shown in this figure. Multibandwrite Write multiband data to a file Syntax multibandwrite(data,filename,interleave) multibandwrite(data,filename,interleave,start,totalsize) multibandwrite(...,param,value,...) Interleave Methods interleave is a string that specifies how multibandwrite interleaves t he bands as it writes data to the file. If data is two-dimensional, mul tibandwrite ignores the interleave argument. Method String Description Example
Band-Interleaved-by- 'bil' Write an entire row AAAAABBBBBCCCCC
Line from each band AAAAABBBBBCCCCC AAAAABBBBBCCCCC
Band-Interleaved-by- 'bip' Write a pixel from each ABCABCABCABCABC...
Pixel band
Band-Sequential 'bsq' Write each band in its AAAAA AAAAA AAAAA