Volume Cartographer 2.27.0
Private Attributes | List of all members
volcart::Reslice Class Reference

An image generated by intersecting a plane with a Volume. More...

#include <vc/core/types/Reslice.hpp>

Public Member Functions

 Reslice (cv::Mat data, const cv::Vec3d &origin, const cv::Vec3d &xvec, const cv::Vec3d &yvec)
 Construct with image data and plane generation parameters. More...
 
template<typename T >
cv::Vec3d sliceToVoxelCoord (const cv::Point_< T > &resliceCoord) const
 Convert a Reslice coordinate to a Volume coordinate. More...
 
const cv::Mat & sliceData () const
 Get the Reslice image. More...
 
cv::Mat draw () const
 Get the Reslice image with an indicator for the middle pixel. More...
 

Private Attributes

cv::Mat sliceData_
 
cv::Vec3d origin_
 
cv::Vec3d xvec_
 
cv::Vec3d yvec_
 

Detailed Description

An image generated by intersecting a plane with a Volume.

Generated by Volume::reslice(). Stores the reslice image, as well as the parameters and position of the reslicing plane.

Definition at line 19 of file Reslice.hpp.

Constructor & Destructor Documentation

◆ Reslice()

volcart::Reslice::Reslice ( cv::Mat  data,
const cv::Vec3d &  origin,
const cv::Vec3d &  xvec,
const cv::Vec3d &  yvec 
)
inline

Construct with image data and plane generation parameters.

Parameters
dataReslice image
originVolume position of the origin of the Reslice image
xvecVector defining the direction of the Reslice X-axis
yvecVector defining the direction of the Reslice Y-axis

Definition at line 30 of file Reslice.hpp.

Member Function Documentation

◆ draw()

cv::Mat volcart::Reslice::draw ( ) const

Get the Reslice image with an indicator for the middle pixel.

Used by segmentation::LocalResliceSegmentation. For debug purposes only.

◆ sliceData()

const cv::Mat & volcart::Reslice::sliceData ( ) const
inline

Get the Reslice image.

Definition at line 49 of file Reslice.hpp.

◆ sliceToVoxelCoord()

template<typename T >
cv::Vec3d volcart::Reslice::sliceToVoxelCoord ( const cv::Point_< T > &  resliceCoord) const
inline

Convert a Reslice coordinate to a Volume coordinate.

Definition at line 43 of file Reslice.hpp.

Member Data Documentation

◆ origin_

cv::Vec3d volcart::Reslice::origin_
private

3D Volume position for the origin of the Reslice image

Definition at line 65 of file Reslice.hpp.

◆ sliceData_

cv::Mat volcart::Reslice::sliceData_
private

Reslice image

Definition at line 63 of file Reslice.hpp.

◆ xvec_

cv::Vec3d volcart::Reslice::xvec_
private

Vector defining the direction of the Reslice X-axis

Definition at line 67 of file Reslice.hpp.

◆ yvec_

cv::Vec3d volcart::Reslice::yvec_
private

Vector defining the direction of the Reslice Y-axis

Definition at line 69 of file Reslice.hpp.


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