Declaration: |
TMat4D.Cut (LowCol, HighCol, LowRow, HighRow, LowLayer, HighLayer, LowTimeslot, HighTimeslot: integer); |
The method Cut cuts the matrix to the specified range. All cells which are within the subspace given by LowCol, HighCol, LowRow, HighRow, LowLayer, HighLayer, LowTimeSlot, and HighTimeSlot are shifted into the "upper left corner" of the four-dimensional matrix. The excess dimensions are reduced to fit the shifted cells.
|
Hint 1: |
Setting both the low and high parameter of a dimension (i.e. LowCol and HighCol) to zero values forces the method to use all elements of that dimension. |
Hint 2: |
Cutting the raw data by means of RawData.Cut does not affect the meta information, it operates only on the bare raw data. Use TrimDataCube if you want to cut an Epina ImageLab data cube. |
Example: |
The statement Cut (1,3,2,7,0,0,0,0); shifts all matrix elements in the columns 1..3 and rows 2..7 in all layers and all time slots towards the x/y-position [1,1] and reduces the size of the matrix to 3 * 6 * NrOfLayers * NrOfTimeSlots. |
|