MeVisLab Toolbox Reference
MarkerConversion.h File Reference

Converts between world and voxel coordinates for markers and entire markerlists. More...

#include "MarkerConversionSystem.h"
#include <mlTypeDefs.h>
#include "mlUtilsAPI.h"
#include <mlMatrix4.h>

Go to the source code of this file.

Classes

class  ml::marker_conversion::MissingReferenceImagePropertiesException
 

Namespaces

namespace  ml
 Main documentation file for ML users and developers.
 
namespace  ml::marker_conversion
 
namespace  ml::marker_conversion::ConversionMode
 
namespace  ml::marker_conversion::SelectedComponents
 

Enumerations

enum  ml::marker_conversion::ConversionMode::Type {
  ml::marker_conversion::ConversionMode::FloatVoxelToWorld = 0 , ml::marker_conversion::ConversionMode::WorldToFloatVoxel , ml::marker_conversion::ConversionMode::IntegerVoxelToWorld , ml::marker_conversion::ConversionMode::WorldToIntegerVoxel ,
  ml::marker_conversion::ConversionMode::IntegerVoxelToFloatVoxel , ml::marker_conversion::ConversionMode::FloatVoxelToIntegerVoxel , ml::marker_conversion::ConversionMode::COUNT
}
 
enum  ml::marker_conversion::SelectedComponents::Type { ml::marker_conversion::SelectedComponents::Position = 0 , ml::marker_conversion::SelectedComponents::PositionAndVector , ml::marker_conversion::SelectedComponents::COUNT }
 

Functions

Generic Conversion Methods
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertMarkerList (XMarkerList &markerList, ConversionMode::Type conversionMode, SelectedComponents::Type selectedComponents, const MedicalImageProperties *referenceImage)
 Converts the given markerList according to conversionMode and enableDirectionVectorConversion.
 
Matrix-based Transformation Methods

-----------------------------------—

void MARKERCONVERSION_EXPORT ml::marker_conversion::ApplyTransformationMatrixToMarkerList (XMarkerList &list, SelectedComponents::Type selectedComponents, const Matrix4 &transformation)
 Transforms a given marker list using the transformation matrix T.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ApplyTransformationMatrixToMarker (XMarker &marker, SelectedComponents::Type selectedComponents, const ml::Matrix4 &transformation)
 Transforms a given marker using the transformation matrix T.
 
Specific Conversion Methods

-----------------------------------—

void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertFloatToIntegerVoxelMarkerList (XMarkerList &markerList_voxel, SelectedComponents::Type selectedComponents)
 Converts a marker list from floating point (=continuous) voxel coordinates to integer (=index) voxel coordinates.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertFloatToIntegerVoxelMarker (XMarker &marker, SelectedComponents::Type selectedComponents)
 Converts a marker from floating point (=continuous) voxel coordinates to integer (=index) voxel coordinates.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertIntegerToFloatVoxelMarkerList (XMarkerList &markerList, SelectedComponents::Type selectedComponents)
 Converts a marker list from integer (=index) voxel coordinates to floating point (=continuous) voxel coordinates.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertIntegerToFloatVoxelMarker (XMarker &marker, SelectedComponents::Type selectedComponents)
 Converts a marker from integer (=index) voxel coordinates to floating point (=continuous) voxel coordinates.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertIntegerVoxelToWorldMarkerList (XMarkerList &markerList, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker list from integer (=index) voxel coordinates to world coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertIntegerVoxelToWorldMarker (XMarker &marker, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker from integer (=index) voxel coordinates to world coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertFloatVoxelToWorldMarkerList (XMarkerList &markerList, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker list from floating point (=continuous) voxel coordinates to world coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertFloatVoxelToWorldMarker (XMarker &marker, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker from floating point (=continuous) voxel coordinates to world coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertWorldToFloatVoxelMarkerList (XMarkerList &markerList, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker list from world coordinates to floating point (=continuous) voxel coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertWorldToFloatVoxelMarker (XMarker &marker, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker from world coordinates to floating point (=continuous) voxel coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertWorldToIntegerVoxelMarkerList (XMarkerList &markerList, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker list from world coordinates to integer (=index) voxel coordinates using referenceImageProps.
 
void MARKERCONVERSION_EXPORT ml::marker_conversion::ConvertWorldToIntegerVoxelMarker (XMarker &marker, SelectedComponents::Type selectedComponents, const ml::MedicalImageProperties &referenceImageProps)
 Converts a marker from world coordinates to integer (=index) voxel coordinates using referenceImageProps.
 
bool MARKERCONVERSION_EXPORT ml::marker_conversion::IsDirectionVectorConversionEnabled (SelectedComponents::Type selectedComponents)
 Returns 'true' if the direction vector is to be converted according to selectedComponents.
 

Detailed Description

Converts between world and voxel coordinates for markers and entire markerlists.

Author
Jan-Martin Kuhnigk

Definition in file MarkerConversion.h.