Environments | PYTHON :: EASI :: MODELER |
Batch Mode | Yes |
Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Related |
Back to top |
Back to top |
Name | Type | Length | Value range |
---|---|---|---|
Input File Name* | String | 1 - | |
Output File Name* | String | 1 - | |
Transformation Parameters File Name* | String | 1 - | |
Transformation Direction | String | 0 - 1 | FOR | INV Default: FOR |
Back to top |
Input File Name
Specifies the name of the image file containing the channels to be linearly transformed.
Output File Name
Specifies the name of the image file to receive the linearly transformed channels.
Transformation Parameters File Name
Specified the name of the MATLAB binary save/load format file that contains the parameters of the linear transformation.
Transformation Direction
Specifies the direction of the linear transformation.
Back to top |
LINTRN applies a linear transformation, plus an optional 'shift' to a list of channels from the input image file, and writes the transformation results to the output image file as one or more channels. The list of channels and the transformation parameters are read from the specified linear transformations parameter file (FILLT).
Each pixel (X,Y) location coincides with an input vector to be transformed, where the first component of the vector is the image value in the first listed channel at that location, the second component of the vector is the image value in the second listed channel at that location, and so on. The vector produced by the transformation is written to the output image at the same pixel location from which the input vector was drawn.
Forward Transformation
The forward linear transformation results are written to 32-bit-per-pixel floating point channels in an output PCIDSK file. If the specified output file does not already exist, it is created.
If the forward transformation matrix has N columns, the input vectors must have N components, and the channel number vector (read from the linear transformation parameters file) will have N components. Each component of the channel number vector must be the number of a channel in the input data set. Component i of the channel number vector is the number of the channel from which component i of the input vectors is read.
If the linear transformation parameter file contains a 'shift' vector, that vector is subtracted from the input vectors before they are linearly transformed. This supports those transformations that require a mean vector to be subtracted from the input vectors before they are pre-multiplied by the transformation matrix.
If the forward transformation matrix has M rows, the output vectors will have M components. If the output PCIDSK file does not exist, one is created with M pixel-interleaved floating point (32R) channels and with the same X and Y dimensions as the input image. If the output file does exist, it must contain at least M channels (not necessarily floating point valued) with the same X and Y dimensions as the input data set. The transformed image data are written to the first M channels of the output file vector component index order.
Inverse Transformation
The input is read from channels in a PCIDSK file. The inverse linear transformation results are written to channels of an existing image file containing explicit-format (that is, not vector-quantized) image data.
If the inverse transformation matrix has N columns, the input vectors must have N components. The input vectors are read from the first N channels of the input image file.
If the inverse transformation matrix has M rows, the output vectors will have M components. The channel number vector (read from the linear transformation parameters file) has M components. Each component of the channel number vector must be the number of an channel existing in the output file. Component i of the output vectors will be written to the channel whose number is in component i of the channel number vector.
If the linear transformation parameters file contains a 'shift' vector, that vector is added to the output vectors before they are written to the output file.
© PCI Geomatics Enterprises, Inc.®, 2024. All rights reserved.