The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home MathPack Matrix Class TMat4D Methods MultiplyLayersByArray | |||||||
See also: AccumulateLayer | |||||||
MultiplyLayersByArray |
|||||||
The method MultiplyLayersByArray multiplies each cell of a pixel vector of the four-dimensional data array elementwise by the corresponding cell of the two-dimensional array FactorArray. The range of the processed pixels can be controlled by the parameters LowCol, HighCol, LowRow, HighRow, LowTimeSlot, and HighTimeSlot. The range of processed cells of a pixel is specified by the parameters LowLayer and HighLayer. Setting both the low and the high parameters of a particular dimension (for example, LowRow and HighRow) to a zero value selects the entire column, row, layer, or time slot, respectively.
Please note that the FactorArray has to have the same size the as base plane of the 4D matrix (given by the number of columns and rows) even if only part of the pixels are to be processed. The function returns the following error codes: 0 ... everything is OK
|