|
VivoQuant 6.4.0
|
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.
Select this operator with VQ.mainWin().setViewMode(), then obtain it with VQ.currentOp().
Public Member Functions | |
| void | resampleData (double vox) |
| Resamples the data to either increase or decrease resolution by setting the voxels to a specific size. | |
| void | resampleDataForScript (double voxXY, double 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. | |
| UChar_t | getMovedROI (int imgIdx, ROILayer *roiLayer, int roiLayerid, UChar_t m) |
| In the case of registrations that would cause ROIs to overlap, we need to pick a winner. | |
| bool | hasROIOverlap () |
| Check if the last reorientation/registration resulted in ROI overlaps. | |
| 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. | |
| 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. | |
| 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. | |
Protected Member Functions | |
| string | saveTransformationToFile (string fileName, string orientation=string()) |
| Save the transformation parameters to a file on the disk (.xml or .tfm). | |
| string | loadTransformationFromFile (string fileName, string orient=string()) |
| Load transformation parameter from a file on the disk (.xml or .tfm). | |
| Array< string > | getTransformParameters (int mode, int slice=0) |
| Get a string containing the transformation parameters. | |
| Array< string > | getFixedTransformParameters (int mode, int slice=0) |
| Get a string containing the fixed transformation parameters. | |
|
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) |
| UChar_t getMovedROI | ( | int | imgIdx, |
| ROILayer * | roiLayer, | ||
| int | roiLayerid, | ||
| UChar_t | m ) |
In the case of registrations that would cause ROIs to overlap, we need to pick a winner.
| imgIdx | the image position |
| roiLayer | |
| roiLayerid | |
| m |
|
protected |
Get a string containing the transformation parameters.
| mode | The mode to obtain the parameters from |
| slice | the slice number (optional) |
| bool hasROIOverlap | ( | ) |
Check if the last reorientation/registration resulted in ROI overlaps.
|
inlineprotected |
Load transformation parameter from a file on the disk (.xml or .tfm).
| fileName | The filename to which the transformation should be loaded from |
| orient | (optional) Orientation of the transformation |
| void resampleData | ( | double | 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 | ( | double | voxXY, |
| double | 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 |
| orientation | (optional) Orientation of the transformation |
| 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)) |
| layer | (optional) Corresponding layer in the 3D ROI Tool (default: -1) |
| 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 |