|
MLITK_SUPPORT_EXPORT void | ml::postITKException (const itk::ExceptionObject &e, const Module *module, MLMessageType messageType, const std::string &handling="") |
| Sends all available information from the ITKException itkException to the ML error handler.
|
|
MLITK_SUPPORT_EXPORT void | ml::copyITKDataBufferToMLSubImg (void *itkData, size_t itkDataTypeSize, const SubImageBox &itkBox, SubImage &outSubImg) |
| Unpack ITK data buffer to an ML subimage and convert data formats if necessary.
|
|
template<typename SIZE_TYPE > |
SIZE_TYPE | ml::ITKSizeFromMLVector (const ImageVector &vec) |
| Assign and cast values from an ML ImageVector to an ITK size object.
|
|
template<typename INDEX_TYPE > |
INDEX_TYPE | ml::ITKIndexFromMLVector (const ImageVector &vec) |
| Assign and cast values from an ML ImageVector to an ITK size object.
|
|
template<typename INDEX_TYPE > |
ImageVector | ml::MLVectorFromITKSize (const INDEX_TYPE &sizeObj, MLint defaultVal) |
| Assign and cast values from an ITK size object to an ML ImageVector.
|
|
template<typename INDEX_TYPE > |
ImageVector | ml::MLVectorFromITKIndex (const INDEX_TYPE &indexObj, MLint defaultVal) |
| Assign and cast values from an ITK index object to an ML ImageVector.
|
|
template<typename VECTOR_TYPE > |
VECTOR_TYPE | ml::ITKVectorFromMLVec3 (const Vector3 &vec, MLdouble defaultComp) |
| Assign and cast values from an ML Vector3 to an ITK size object; all itk components with index > 2 are filled with defaultComp.
|
|
template<typename VECTOR_TYPE > |
VECTOR_TYPE | ml::ITKVectorFromMLVec4 (const Vector4 &vec, MLdouble defaultComp) |
| Assign and cast values from an ML Vector4 to an ITK size object; all itk components with index > 3 are filled with defaultComp.
|
|
template<typename POINT_TYPE > |
POINT_TYPE | ml::ITKPointFromMLVec3 (const Vector3 &vec, MLdouble defaultComp) |
| Assign and cast values from an ML Vector3 to an ITK point object; all itk components with index > 3 are filled with defaultComp.
|
|
template<typename POINT_TYPE > |
POINT_TYPE | ml::ITKPointFromMLVec4 (const Vector4 &vec, MLdouble defaultComp) |
| Assign and cast values from an ML Vector4 to an ITK object of type POINT_TYPE; all itk components with index > 3 are filled with defaultComp.
|
|
template<typename REGION_PARENT_TYPE > |
REGION_PARENT_TYPE::RegionType | ml::ITKRegionFromMLSubImgBox (const SubImageBox &subImgBox) |
| Assign and cast values from an ITK region to an ML SubImageBox object.
|
|
template<typename REGION_PARENT_TYPE > |
SubImageBox | ml::MLSubImgBoxFromITKRegion (const typename REGION_PARENT_TYPE::RegionType ®ion) |
| Assign and cast values from an ITK region to an ML SubImageBox object.
|
|
template<typename ARRAY_TYPE , typename STL_VECTOR > |
ARRAY_TYPE | ml::ITKArrayFromSTLVector (const STL_VECTOR &stlVec) |
| Returns an object of an ITK array type ARRAY_TYPE which contains cast copies of all elements of stlVec (in same order and number).
|
|
template<typename VERSOR_TYPE > |
VERSOR_TYPE | ml::ITKVersorFromMLVector (const ml::Vector4 &mlVec) |
| Returns an object of an ITK array type ARRAY_TYPE which contains cast copies of all elements of stlVec (in same order and number).
|
|
template<typename ARR_TYP , unsigned int ARR_SIZE> |
size_t | ml::GetSizeOfAnITKArray (const itk::FixedArray< ARR_TYP, ARR_SIZE > &itkArray) |
| Returns the size of an itk::FixedArray.
|
|
template<typename ITK_ARRAY_TYPE > |
size_t | ml::GetSizeOfAnITKArray (const ITK_ARRAY_TYPE &itkArray) |
| Returns the size of an arbitrary itk array.
|
|
template<typename STL_CONTAINER , typename ITK_ARRAY_TYPE > |
const STL_CONTAINER | ml::STLVectorFromITKArray (const ITK_ARRAY_TYPE &itkArray) |
| Returns an STL container object of type STL_CONTAINER which contains cast copies of all elements of the ITK_ARRAY_TYPEd itkArray (in same order and number).
|
|
template<typename ITK_VERSOR_TYPE > |
const ml::Vector4 | ml::MLVectorFromITKVersor (const ITK_VERSOR_TYPE &itkVersor) |
| Returns an STL container object of type STL_CONTAINER which contains cast copies of all elements of the ITK_ARRAY_TYPEd itkArray (in same order and number).
|
|
template<typename INDEX_TYPE > |
INDEX_TYPE | ml::ITKIndexFromMLVec6 (const Vector6 &vec) |
| Assign and cast values from an ML Vector6 to an ITK index object of type INDEX_TYPE.
|
|
template<class FilterType > |
FilterType::NodeContainer::Pointer | ml::ITKNodeContainerFromBasePointer (Base *baseVal) |
| Reads a base field and looks for point like data structures (XMarkerLists, XMarkerListContainers, PointLists and VectorLists).
|
|
MLITK_SUPPORT_EXPORT void | ml::setAllowedTypesForITKNodeContainer (BaseField *field) |
| Set the allowed types for input Base fields that are converted to ITK NodeContainer objects.
|
|
template<typename DTYPE , unsigned int ROW_DIM, unsigned int COL_DIM> |
itk::Matrix< DTYPE, ROW_DIM, COL_DIM > | ml::ITKMatrixFromMLMatrix (const Matrix4 &mat) |
| Converts the ML 4x4 matrix mat function argument to the returned itk::Matrix of type itk::Matrix<DTYPE, ROW_DIM, COL_DIM>; all components of the returned matrix are set with cast values from mat if their row and column indexes are <=3; all other entries are predefined from an SetIdentity call and a warning will be posted.
|
|
template<typename DTYPE , unsigned int ROW_DIM, unsigned int COL_DIM> |
Matrix4 | ml::MLMatrixFromITKMatrix (const ITKML_TYPENAME itk::Matrix< DTYPE, ROW_DIM, COL_DIM > &mat, bool fillWithID=false, bool suppressDimensionWarning=false) |
| Converts itk::Matrix mat of type itk::Matrix<DTYPE, ROW_DIM, COL_DIM> to the returned ML 4x4 matrix of type double; all components of the returned matrix are set with cast values from existing entries from mat; all other entries are left as predefined with a Matrix4::getIdentity call if fillWithID is true, if false the values are filled with 0.
|
|
template<class POINTSETTYPE > |
POINTSETTYPE::Pointer | ml::ITKPointSetFromBasePointer (Base *baseVal) |
| Reads the passed baseVal objects and looks for point like data structures (XMarkerLists, XMarkerListContainers, PointLists and VectorLists).
|
|
template<typename ITK_IMPORT_IMAGE_FILTER_TYPE > |
void | ml::ITKSetOriginFromVec3 (itk::ImportImageFilter< typename ITK_IMPORT_IMAGE_FILTER_TYPE::OutputImagePixelType, ITK_IMPORT_IMAGE_FILTER_TYPE::OutputImageType::ImageDimension > *importImageFilter, const Vector3 &orig) |
| On the given ITK_IMPORT_IMAGE_FILTER_TYPE the origin orig is set with the SetOrigin method from an origin type; the origin type conversion is done as described in ITKPointFromMLVec3.
|
|
template<typename ITK_IMAGE_TYPE > |
void | ml::ITKSetOriginFromVec3 (itk::Image< typename ITK_IMAGE_TYPE::PixelType, ITK_IMAGE_TYPE::ImageDimension > *image, const Vector3 &orig) |
| On the given ITK_IMAGE_TYPE the origin orig is set with the SetOrigin method from a point type; the origin type conversion is done as described in ITKPointFromMLVec3.
|
|
template<typename ITK_CLASS_TYPE > |
void | ml::setITKWorldFromMedicalImageProperty (MedicalImageProperties props, ITK_CLASS_TYPE *image, bool correctSVS=true) |
| Takes the world transformation of ML MedicalImageProperties and sets spacing, origin and direction cosines (the orientation) of the itk image or import image filter of type ITK_CLASS_TYPE.
|
|
template<typename ITK_CLASS_TYPE > |
void | ml::setMLWorldFromITKScaleOriginAndOrientation (const ITK_CLASS_TYPE *image, MedicalImageProperties &props, bool correctSVS=true, bool suppressDimensionWarning=false) |
| Sets the world transformation of the ML MedicalImageProperties props from the spacing, origin and direction cosines (the orientation) given by the itk image function argument.
|
|
template<typename ITK_INDATATYPE , unsigned int DIM> |
itk::ImportImageFilter< ITK_INDATATYPE, DIM >::Pointer | ml::getITKImportImageFromSubImg (const SubImage &inSubImg, const MedicalImageProperties &props, bool correctSVS=true) |
| Takes a SubImage and returns an object of an itk::ImportImageFilter managing the inSubImg as ITK object.
|
|
template<typename RETURN_TYPE_PTR , typename FILTER_TYPE , typename VOXEL_TYPE > |
RETURN_TYPE_PTR | ml::getInputAsItkImportImageAndSubImg (Module &op, int inIdx, TSubImage< VOXEL_TYPE > &dataSubImg, bool correctSVS=true) |
| Reads and updates an input image from the input number inIdx of Module op and sets up the referenced TSubImage dataSubImg with size, and data allocated from the MLMemoryManager as string memory handle which means that the data will be released when dataSubImg is destroyed.
|
|