v2.0.0
Loading...
Searching...
No Matches
MRILIB::MriSliceImage Struct Reference

Single 2D MRI cross-section produced by MriSlicer (pixel buffer + RAS metadata). More...

#include <mri_slicer.h>

Public Attributes

Eigen::MatrixXf pixels
int width
int height
SliceOrientation orientation
int sliceIndex
Eigen::Matrix4f sliceToRas

Detailed Description

Single 2D MRI cross-section produced by MriSlicer (pixel buffer + RAS metadata).

Carries one orthogonal-plane sample of a 3D MriVolData ready for upload to the slice viewer: a normalised 8-bit grayscale pixel buffer, the in-volume slice index it was sampled at, and the bookkeeping the widget needs to map mouse picks back to RAS millimetres.

Definition at line 86 of file mri_slicer.h.

Member Data Documentation

◆ height

int MRILIB::MriSliceImage::height

Height of the slice image in pixels.

Definition at line 90 of file mri_slicer.h.

◆ orientation

SliceOrientation MRILIB::MriSliceImage::orientation

Orientation of the slice.

Definition at line 91 of file mri_slicer.h.

◆ pixels

Eigen::MatrixXf MRILIB::MriSliceImage::pixels

2D pixel data, normalised 0-1.

Definition at line 88 of file mri_slicer.h.

◆ sliceIndex

int MRILIB::MriSliceImage::sliceIndex

Voxel index along the anatomical orientation's slicing axis.

Definition at line 92 of file mri_slicer.h.

◆ sliceToRas

Eigen::Matrix4f MRILIB::MriSliceImage::sliceToRas

4x4 transform placing the slice in RAS space.

Definition at line 93 of file mri_slicer.h.

◆ width

int MRILIB::MriSliceImage::width

Width of the slice image in pixels.

Definition at line 89 of file mri_slicer.h.


The documentation for this struct was generated from the following file: