MRI volume slicer. More...
#include <mri_slicer.h>
Static Public Member Functions | |
| static MriSliceImage | extractSlice (const QVector< float > &volData, const QVector< int > &dims, const Eigen::Matrix4f &vox2ras, SliceOrientation orientation, int sliceIndex) |
| static QVector< MriSliceImage > | extractOrthogonal (const QVector< float > &volData, const QVector< int > &dims, const Eigen::Matrix4f &vox2ras, const Eigen::Vector3f &rasPoint) |
| static Eigen::Vector3i | rasToVoxel (const Eigen::Matrix4f &vox2ras, const Eigen::Vector3f &rasPoint) |
| static Eigen::Vector3f | voxelToRas (const Eigen::Matrix4f &vox2ras, const Eigen::Vector3i &voxel) |
| static MriSliceImage | extractSlice (const MriVolData &vol, SliceOrientation orientation, int sliceIndex) |
| static QVector< MriSliceImage > | extractOrthogonal (const MriVolData &vol, const Eigen::Vector3f &rasPoint) |
| static Eigen::Vector3i | rasToVoxel (const MriVolData &vol, const Eigen::Vector3f &rasPoint) |
| static Eigen::Vector3f | voxelToRas (const MriVolData &vol, const Eigen::Vector3i &voxel) |
MRI volume slicer.
Provides static methods for extracting 2D slices from 3D MRI volumes.
Supports axial, coronal, and sagittal slice extraction with automatic normalisation and RAS coordinate mapping.
Definition at line 99 of file mri_slicer.h.
|
static |
Extract all three orthogonal slices at a given RAS point.
| [in] | vol | Loaded MRI volume. |
| [in] | rasPoint | RAS coordinate to slice through. |
|
static |
Extract all three orthogonal slices at a given RAS point.
| [in] | volData | Flat array of voxel intensities. |
| [in] | dims | Volume dimensions {dimX, dimY, dimZ}. |
| [in] | vox2ras | 4x4 voxel-to-RAS transform. |
| [in] | rasPoint | RAS coordinate to slice through. |
|
static |
Extract a 2D slice from an MriVolData volume.
| [in] | vol | Loaded MRI volume. |
| [in] | orientation | Slice orientation. |
| [in] | sliceIndex | Index along the slicing axis. |
Definition at line 212 of file mri_slicer.cpp.
|
static |
Extract a 2D slice from a 3D volume stored as a flat array.
| [in] | volData | Flat array of voxel intensities (dimX x dimY x dimZ, x-fastest). |
| [in] | dims | Volume dimensions {dimX, dimY, dimZ}. |
| [in] | vox2ras | 4x4 voxel-to-RAS transform. |
| [in] | orientation | Slice orientation (Axial, Coronal, or Sagittal). |
| [in] | sliceIndex | Index along the slicing axis. |
|
static |
Convert RAS coordinate to voxel index.
| [in] | vox2ras | 4x4 voxel-to-RAS transform. |
| [in] | rasPoint | RAS coordinate. |
|
static |
Convert RAS coordinate to voxel index using a volume's transform.
| [in] | vol | Loaded MRI volume. |
| [in] | rasPoint | RAS coordinate. |
|
static |
Convert voxel index to RAS coordinate.
| [in] | vox2ras | 4x4 voxel-to-RAS transform. |
| [in] | voxel | Voxel index. |
|
static |
Convert voxel index to RAS coordinate using a volume's transform.
| [in] | vol | Loaded MRI volume. |
| [in] | voxel | Voxel index. |