|
VivoQuant
|
Object for reorienting the displayed data in the Slice viewports, including ROIs. More...
Public Member Functions | |
| void | resampleData (float vox) |
| Resamples the data to either increase or decrease resolution by setting the voxels to a specific size. More... | |
| void | resampleDataForScript (float voxXY, float voxZ, int dimX, int dimY, int dimZ) |
| Resamples the data to either increase or decrease resolution by setting the voxel size and dimensions of the data in the viewports. More... | |
| void | selectROIs (Array< int > indices, int layer=-1) |
| Sets which ROIs are selected using the list provided by 'indices'; each ROI index provided will be selected and all others will not be selected. If you provide an index of # of ROIs + 1, "All" ROIs will be selected. More... | |
| void | setManualTransform3D (TransformFactory::AffineType::MatrixType matrix, TransformFactory::AbstractMatrixTransformType::OutputVectorType translation) |
| Sets the entire 3D manual transformation and updates the UI values to match with these setting. More... | |
| void | setManualTransform2DCurrentSlice (TransformFactory::AffineType2D::MatrixType matrix, TransformFactory::AbstractMatrixTransformType2D::OutputVectorType translation) |
| Sets a 2D manual transformation to the current slice and updates the UI values to match with these setting. More... | |
Protected Member Functions | |
| string | saveTransformationToFile (string fileName, string orientation=string()) |
| Save the transformation parameters to a file on the disk (.xml or .tfm) More... | |
| string | loadTransformationFromFile (string fileName, string orient=string()) |
| Load transformation parameter from a file on the disk (.xml or .tfm) More... | |
| Array< string > | getTransformParameters (int mode, int slice=0) |
| Get a string containing the transformation parameters. More... | |
| Array< string > | getFixedTransformParameters (int mode, int slice=0) |
| Get a string containing the fixed transformation parameters. More... | |
Friends | |
| class | MatrixManipulationDialog |
Object for reorienting the displayed data in the Slice viewports, including ROIs.
This object can be used to rotate, translate, scale, or flip the data and/or ROIs that are being displayed in each Slice View. It can also be used to interpolate the data being used.
See also ScriptMaster::currentOp() to obtain this object.
|
protected |
Get a string containing the fixed transformation parameters.
| mode | The filename to which the transformation should be loaded from |
| slice | the slice number (optional) |
|
protected |
Get a string containing the transformation parameters.
| mode | The mode to obtain the parameters from |
| slice | the slice number (optional) |
|
inlineprotected |
Load transformation parameter from a file on the disk (.xml or .tfm)
| fileName | The filename to which the transformation should be loaded from |
| void resampleData | ( | float | vox | ) |
Resamples the data to either increase or decrease resolution by setting the voxels to a specific size.
| vox | The desired size of individual voxels being displayed (mm) |
| void resampleDataForScript | ( | float | voxXY, |
| float | voxZ, | ||
| int | dimX, | ||
| int | dimY, | ||
| int | dimZ | ||
| ) |
Resamples the data to either increase or decrease resolution by setting the voxel size and dimensions of the data in the viewports.
| voxXY | The desired planar voxel size |
| voxZ | The desired Slice Spacing |
| dimX | The desired dimensions of the Sagittal slice view data |
| dimY | The desired dimensions of the Coronal slice view data |
| dimZ | The desired dimensions of the Transversal slice view data |
|
protected |
Save the transformation parameters to a file on the disk (.xml or .tfm)
| fileName | The filename to which the transformation should be saved to |
| void selectROIs | ( | Array< int > | indices, |
| int | layer = -1 |
||
| ) |
Sets which ROIs are selected using the list provided by 'indices'; each ROI index provided will be selected and all others will not be selected. If you provide an index of # of ROIs + 1, "All" ROIs will be selected.
| indices | The correcponding ROI in the index of ROIs (from 0 to (# of ROI's + 1)) |
| layerId | corresponding layers in 3DROI Operator |
| void setManualTransform2DCurrentSlice | ( | TransformFactory::AffineType2D::MatrixType | matrix, |
| TransformFactory::AbstractMatrixTransformType2D::OutputVectorType | translation | ||
| ) |
Sets a 2D manual transformation to the current slice and updates the UI values to match with these setting.
| matrix | The 2D matrix of the transformation to set |
| translation | The 2D translation of the transformation to set |
| void setManualTransform3D | ( | TransformFactory::AffineType::MatrixType | matrix, |
| TransformFactory::AbstractMatrixTransformType::OutputVectorType | translation | ||
| ) |
Sets the entire 3D manual transformation and updates the UI values to match with these setting.
| matrix | The 3D matrix of the transformation to set |
| translation | The 3D translation of the transformation to set |
1.8.17