ITK  6.0.0
Insight Toolkit
Static Public Member Functions | List of all members
itk::IOTestHelper Class Reference

#include <itkIOTestHelper.h>

Detailed Description

Definition at line 29 of file itkIOTestHelper.h.

Static Public Member Functions

template<typename ImageType >
static ImageType::Pointer AllocateImageFromRegionAndSpacing (const typename ImageType::RegionType &region, const typename ImageType::SpacingType &spacing)
 
template<typename ImageType >
static ImageType::Pointer AllocateImageFromRegionAndSpacing (const typename ImageType::RegionType &region, const typename ImageType::SpacingType &spacing, int vecLength)
 
static void RandomPix (vnl_random &randgen, double &pix)
 
static void RandomPix (vnl_random &randgen, float &pix)
 
static void RandomPix (vnl_random &randgen, itk::RGBPixel< unsigned char > &pix)
 
static void RandomPix (vnl_random &randgen, long long &pix)
 
template<typename TPixel >
static void RandomPix (vnl_random &randgen, TPixel &pix)
 
static void RandomPix (vnl_random &randgen, unsigned long long &pix)
 
template<typename TImage >
static TImage::Pointer ReadImage (const std::string &fileName, const bool zeroOrigin=false, typename ImageIOBase::Pointer imageio=nullptr)
 
static int Remove (const char *fname)
 
template<typename ImageType >
static void SetIdentityDirection (typename ImageType::Pointer &im)
 
template<typename ImageType , typename ImageIOType >
static void WriteImage (typename ImageType::Pointer image, const std::string &filename, typename ImageIOType::Pointer imageio=nullptr)
 

Member Function Documentation

◆ AllocateImageFromRegionAndSpacing() [1/2]

template<typename ImageType >
static ImageType::Pointer itk::IOTestHelper::AllocateImageFromRegionAndSpacing ( const typename ImageType::RegionType &  region,
const typename ImageType::SpacingType &  spacing 
)
inlinestatic

Definition at line 199 of file itkIOTestHelper.h.

References New().

◆ AllocateImageFromRegionAndSpacing() [2/2]

template<typename ImageType >
static ImageType::Pointer itk::IOTestHelper::AllocateImageFromRegionAndSpacing ( const typename ImageType::RegionType &  region,
const typename ImageType::SpacingType &  spacing,
int  vecLength 
)
inlinestatic

Definition at line 211 of file itkIOTestHelper.h.

References New().

◆ RandomPix() [1/6]

static void itk::IOTestHelper::RandomPix ( vnl_random &  randgen,
double &  pix 
)
inlinestatic

Definition at line 171 of file itkIOTestHelper.h.

◆ RandomPix() [2/6]

static void itk::IOTestHelper::RandomPix ( vnl_random &  randgen,
float &  pix 
)
inlinestatic

Definition at line 177 of file itkIOTestHelper.h.

◆ RandomPix() [3/6]

static void itk::IOTestHelper::RandomPix ( vnl_random &  randgen,
itk::RGBPixel< unsigned char > &  pix 
)
inlinestatic

Definition at line 141 of file itkIOTestHelper.h.

◆ RandomPix() [4/6]

static void itk::IOTestHelper::RandomPix ( vnl_random &  randgen,
long long &  pix 
)
inlinestatic

Definition at line 157 of file itkIOTestHelper.h.

◆ RandomPix() [5/6]

template<typename TPixel >
static void itk::IOTestHelper::RandomPix ( vnl_random &  randgen,
TPixel &  pix 
)
inlinestatic

Definition at line 151 of file itkIOTestHelper.h.

◆ RandomPix() [6/6]

static void itk::IOTestHelper::RandomPix ( vnl_random &  randgen,
unsigned long long &  pix 
)
inlinestatic

Definition at line 164 of file itkIOTestHelper.h.

◆ ReadImage()

template<typename TImage >
static TImage::Pointer itk::IOTestHelper::ReadImage ( const std::string &  fileName,
const bool  zeroOrigin = false,
typename ImageIOBase::Pointer  imageio = nullptr 
)
inlinestatic

Definition at line 34 of file itkIOTestHelper.h.

References New().

◆ Remove()

static int itk::IOTestHelper::Remove ( const char *  fname)
inlinestatic

Definition at line 183 of file itkIOTestHelper.h.

◆ SetIdentityDirection()

template<typename ImageType >
static void itk::IOTestHelper::SetIdentityDirection ( typename ImageType::Pointer im)
inlinestatic

◆ WriteImage()

template<typename ImageType , typename ImageIOType >
static void itk::IOTestHelper::WriteImage ( typename ImageType::Pointer  image,
const std::string &  filename,
typename ImageIOType::Pointer  imageio = nullptr 
)
inlinestatic

Definition at line 78 of file itkIOTestHelper.h.

References New().


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