PRTools Contents

PRTools User Guide

band2obj

BAND2OBJ

Mapping image bands to objects

    B = BAND2OBJ(A,N)
    B = A*BAND2OBJ([],N)
    B = A*BAND2OBJ(N)

Input
 A Dataset or datafile with multiband image objects.
 N Number of successive bands to be combined in an object.  The number of image bands in A should be multiple of N.  Default N = 1.

Output
 B Output dataset or datafile.

Description

If the objects in a dataset or datafile A are multi-band images, e.g. RGB images, or the result of IM_PATCH, then the featsize of A is [C,R,L] for  for L bands of a C x R image. This routine combines sets of N successive  bands as separate objects. The total number of objects is thereby  enlarged by a factor L/N. All information of the constituting objects  like labels, is copied to the newly created objects.

Note: BAND2OBJ cannot be applied to datafiles for which already a  bandselection (BANDSEL) has been defined.

See also

datasets, datafiles, bandsel, im2obj, data2im,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.