principal_comp — Compute the principal components of multichannel images.
principal_comp does a principal components analysis of
multichannel images. This is useful for images obtained, e.g.,
with the thematic mapper of the Landsat satellite. Because the
spectral bands are highly correlated, it is desirable to transform
them to uncorrelated images. This can be used to save storage,
since the bands containing little information can be discarded, and
with respect to a later classification step.
principal_comp takes a (multichannel) image
and transforms it to the output image
which contains the same number of channels, using the principal
components analysis. The parameter
the relative information content of each output channel.
principal_comp can be executed on OpenCL devices if image consists
of eight channels or less. Since the calculations are done in single
precision floating point, the results may differ from those calculated by
Note that filter operators may return unexpected results if an image with a reduced domain is used as input. Please refer to the chapter Filters.
→object (byte* / direction* / cyclic* / int1* / int2* / uint2* / int4* / real*) *allowed for compute devices
Multichannel input image.
Multichannel output image.
Information content of each output channel.
principal_comp returns the value 2 (H_MSG_TRUE) if
the parameters are correct. Otherwise an exception is raised.