go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Functions
elastix::CoreMainGTestUtilities Namespace Reference

Data Structures

class  Exception
 

Functions

template<typename T >
itk::SmartPointer< T > CheckNew ()
 
std::vector< doubleConvertStringsToVectorOfDouble (const std::vector< std::string > &strings)
 
template<std::vcl_size_t VDimension>
itk::Offset< VDimension > ConvertToOffset (const std::vector< double > &doubles)
 
template<typename TPixel , unsigned VImageDimension>
auto CreateImage (const itk::Size< VImageDimension > &imageSize)
 
template<typename TPixel , unsigned VImageDimension>
auto CreateImageFilledWithSequenceOfNaturalNumbers (const itk::Size< VImageDimension > &imageSize)
 
std::map< std::string, std::vector< std::string > > CreateParameterMap (std::initializer_list< std::pair< std::string, std::string > > initializerList)
 
template<unsigned VImageDimension>
std::map< std::string, std::vector< std::string > > CreateParameterMap (std::initializer_list< std::pair< std::string, std::string > > initializerList)
 
ParameterObject::Pointer CreateParameterObject (std::initializer_list< std::pair< std::string, std::string > > initializerList)
 
template<typename TRawPointer >
decltype(auto) Deref (const TRawPointer ptr)
 
template<typename TSmartPointer >
decltype(auto) DerefSmartPointer (const TSmartPointer &ptr)
 
template<typename TPixel , unsigned int VImageDimension>
void FillImageRegion (itk::Image< TPixel, VImageDimension > &image, const itk::Index< VImageDimension > &regionIndex, const itk::Size< VImageDimension > &regionSize)
 
template<typename T >
decltype(T().front()) Front (T &container)
 
std::string GetCurrentBinaryDirectoryPath ()
 
std::string GetDataDirectoryPath ()
 
std::string GetNameOfTest (const testing::Test &)
 
template<typename TFilter >
std::vector< doubleGetTransformParametersFromFilter (TFilter &filter)
 
std::vector< doubleGetTransformParametersFromMaps (const std::vector< ParameterObject::ParameterMapType > &transformParameterMaps)
 

Function Documentation

◆ CheckNew()

template<typename T >
itk::SmartPointer< T > elastix::CoreMainGTestUtilities::CheckNew ( )

Definition at line 123 of file elxCoreMainGTestUtilities.h.

◆ ConvertStringsToVectorOfDouble()

std::vector< double > elastix::CoreMainGTestUtilities::ConvertStringsToVectorOfDouble ( const std::vector< std::string > &  strings)
inline

Definition at line 153 of file elxCoreMainGTestUtilities.h.

◆ ConvertToOffset()

template<std::vcl_size_t VDimension>
itk::Offset< VDimension > elastix::CoreMainGTestUtilities::ConvertToOffset ( const std::vector< double > &  doubles)

Definition at line 173 of file elxCoreMainGTestUtilities.h.

◆ CreateImage()

template<typename TPixel , unsigned VImageDimension>
auto elastix::CoreMainGTestUtilities::CreateImage ( const itk::Size< VImageDimension > &  imageSize)

Definition at line 266 of file elxCoreMainGTestUtilities.h.

◆ CreateImageFilledWithSequenceOfNaturalNumbers()

template<typename TPixel , unsigned VImageDimension>
auto elastix::CoreMainGTestUtilities::CreateImageFilledWithSequenceOfNaturalNumbers ( const itk::Size< VImageDimension > &  imageSize)

Definition at line 278 of file elxCoreMainGTestUtilities.h.

◆ CreateParameterMap() [1/2]

std::map< std::string, std::vector< std::string > > elastix::CoreMainGTestUtilities::CreateParameterMap ( std::initializer_list< std::pair< std::string, std::string > >  initializerList)
inline

Definition at line 195 of file elxCoreMainGTestUtilities.h.

◆ CreateParameterMap() [2/2]

template<unsigned VImageDimension>
std::map< std::string, std::vector< std::string > > elastix::CoreMainGTestUtilities::CreateParameterMap ( std::initializer_list< std::pair< std::string, std::string > >  initializerList)

Definition at line 210 of file elxCoreMainGTestUtilities.h.

◆ CreateParameterObject()

ParameterObject::Pointer elastix::CoreMainGTestUtilities::CreateParameterObject ( std::initializer_list< std::pair< std::string, std::string > >  initializerList)
inline

Definition at line 222 of file elxCoreMainGTestUtilities.h.

◆ Deref()

template<typename TRawPointer >
decltype(auto) elastix::CoreMainGTestUtilities::Deref ( const TRawPointer  ptr)

Dereferences the specified raw pointer. Throws an Exception instead, when the pointer is null.

Definition at line 81 of file elxCoreMainGTestUtilities.h.

◆ DerefSmartPointer()

template<typename TSmartPointer >
decltype(auto) elastix::CoreMainGTestUtilities::DerefSmartPointer ( const TSmartPointer &  ptr)

Definition at line 95 of file elxCoreMainGTestUtilities.h.

◆ FillImageRegion()

template<typename TPixel , unsigned int VImageDimension>
void elastix::CoreMainGTestUtilities::FillImageRegion ( itk::Image< TPixel, VImageDimension > &  image,
const itk::Index< VImageDimension > &  regionIndex,
const itk::Size< VImageDimension > &  regionSize 
)

Fills the specified image region with pixel values 1.

Definition at line 139 of file elxCoreMainGTestUtilities.h.

◆ Front()

template<typename T >
decltype(T().front()) elastix::CoreMainGTestUtilities::Front ( T &  container)

Returns a reference to the front of the specified container. Throws an Exception instead, when the container is empty.

Definition at line 111 of file elxCoreMainGTestUtilities.h.

◆ GetCurrentBinaryDirectoryPath()

std::string elastix::CoreMainGTestUtilities::GetCurrentBinaryDirectoryPath ( )

◆ GetDataDirectoryPath()

std::string elastix::CoreMainGTestUtilities::GetDataDirectoryPath ( )

◆ GetNameOfTest()

std::string elastix::CoreMainGTestUtilities::GetNameOfTest ( const testing::Test &  )

◆ GetTransformParametersFromFilter()

template<typename TFilter >
std::vector< double > elastix::CoreMainGTestUtilities::GetTransformParametersFromFilter ( TFilter &  filter)

Definition at line 255 of file elxCoreMainGTestUtilities.h.

◆ GetTransformParametersFromMaps()

std::vector< double > elastix::CoreMainGTestUtilities::GetTransformParametersFromMaps ( const std::vector< ParameterObject::ParameterMapType > &  transformParameterMaps)
inline

Definition at line 232 of file elxCoreMainGTestUtilities.h.



Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo