plastimatch
Loading...
Searching...
No Matches
itk_image.cxx File Reference
#include "plmbase_config.h"
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkCastImageFilter.h"
#include "itkOrientImageFilter.h"
#include "direction_cosines.h"
#include "itk_image.h"
#include "itk_volume_header.h"
#include "plm_image_header.h"
#include "plm_int.h"
#include "volume_header.h"

Functions

void itk_image_get_props (const std::string &fileName, int *num_dimensions, itk::ImageIOBase::IOPixelType *pixel_type, itk::ImageIOBase::IOComponentType *component_type, int *num_components)
 
template<class T >
void get_image_header (plm_long dim[3], float offset[3], float spacing[3], T image)
 
template<class T >
void itk_image_get_image_header (plm_long dim[3], float offset[3], float spacing[3], Direction_cosines &dc, const T image)
 
template<class T >
void itk_image_get_volume_header (Volume_header *vh, T image)
 
template<class T >
void itk_image_set_header (T dest, const Plm_image_header *pih)
 
template<class T >
void itk_image_set_header (T dest, const Plm_image_header &pih)
 
template<class T , class U >
void itk_image_header_copy (T dest, U src)
 
template<class T >
void itk_volume_center (float center[3], const T image)
 
template<class T >
itk_image_fix_negative_spacing (T img)
 
template void get_image_header (plm_long dim[3], float offset[3], float spacing[3], UCharImageType::Pointer image)
 
template void get_image_header (plm_long dim[3], float offset[3], float spacing[3], ShortImageType::Pointer image)
 
template void get_image_header (plm_long dim[3], float offset[3], float spacing[3], UShortImageType::Pointer image)
 
template void get_image_header (plm_long dim[3], float offset[3], float spacing[3], FloatImageType::Pointer image)
 
template void itk_image_set_header (UCharImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (CharImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (UShortImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (ShortImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (UInt32ImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (Int32ImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (FloatImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (DoubleImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (UCharVecImageType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (DeformationFieldType::Pointer, const Plm_image_header *pih)
 
template void itk_image_set_header (UCharVecImageType::Pointer, const Plm_image_header &pih)
 
template void itk_image_set_header (DeformationFieldType::Pointer, const Plm_image_header &pih)
 
template void itk_image_header_copy (UCharVecImageType::Pointer, UCharImageType::Pointer)
 
template void itk_image_header_copy (UCharVecImageType::Pointer, UInt32ImageType::Pointer)
 
template void itk_image_header_copy (UCharVecImageType::Pointer, UCharVecImageType::Pointer)
 
template void itk_image_header_copy (UCharVecImageType::Pointer, DeformationFieldType::Pointer)
 
template void itk_image_header_copy (UCharImageType::Pointer, UCharVecImageType::Pointer)
 
template void itk_image_header_copy (UCharImageType::Pointer, FloatImageType::Pointer)
 
template void itk_image_header_copy (UCharImage2DType::Pointer, UCharVecImage2DType::Pointer)
 
template void itk_image_get_volume_header (Volume_header *, DeformationFieldType::Pointer)
 
template void itk_volume_center (float center[3], const FloatImageType::Pointer image)
 
template UCharImageType::Pointer itk_image_fix_negative_spacing (UCharImageType::Pointer image)
 
template CharImageType::Pointer itk_image_fix_negative_spacing (CharImageType::Pointer image)
 
template UShortImageType::Pointer itk_image_fix_negative_spacing (UShortImageType::Pointer image)
 
template ShortImageType::Pointer itk_image_fix_negative_spacing (ShortImageType::Pointer image)
 
template UInt32ImageType::Pointer itk_image_fix_negative_spacing (UInt32ImageType::Pointer image)
 
template Int32ImageType::Pointer itk_image_fix_negative_spacing (Int32ImageType::Pointer image)
 
template UInt64ImageType::Pointer itk_image_fix_negative_spacing (UInt64ImageType::Pointer image)
 
template Int64ImageType::Pointer itk_image_fix_negative_spacing (Int64ImageType::Pointer image)
 
template FloatImageType::Pointer itk_image_fix_negative_spacing (FloatImageType::Pointer image)
 
template DoubleImageType::Pointer itk_image_fix_negative_spacing (DoubleImageType::Pointer image)
 
template UCharVecImageType::Pointer itk_image_fix_negative_spacing (UCharVecImageType::Pointer image)
 
template DeformationFieldType::Pointer itk_image_fix_negative_spacing (DeformationFieldType::Pointer image)
 

Function Documentation

◆ get_image_header() [1/5]

template void get_image_header ( plm_long dim[3],
float offset[3],
float spacing[3],
FloatImageType::Pointer image )

◆ get_image_header() [2/5]

template void get_image_header ( plm_long dim[3],
float offset[3],
float spacing[3],
ShortImageType::Pointer image )

◆ get_image_header() [3/5]

template<class T >
void get_image_header ( plm_long dim[3],
float offset[3],
float spacing[3],
T image )

◆ get_image_header() [4/5]

template void get_image_header ( plm_long dim[3],
float offset[3],
float spacing[3],
UCharImageType::Pointer image )

◆ get_image_header() [5/5]

template void get_image_header ( plm_long dim[3],
float offset[3],
float spacing[3],
UShortImageType::Pointer image )

◆ itk_image_fix_negative_spacing() [1/13]

template CharImageType::Pointer itk_image_fix_negative_spacing ( CharImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [2/13]

template DeformationFieldType::Pointer itk_image_fix_negative_spacing ( DeformationFieldType::Pointer image)

◆ itk_image_fix_negative_spacing() [3/13]

template DoubleImageType::Pointer itk_image_fix_negative_spacing ( DoubleImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [4/13]

template FloatImageType::Pointer itk_image_fix_negative_spacing ( FloatImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [5/13]

template Int32ImageType::Pointer itk_image_fix_negative_spacing ( Int32ImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [6/13]

template Int64ImageType::Pointer itk_image_fix_negative_spacing ( Int64ImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [7/13]

template ShortImageType::Pointer itk_image_fix_negative_spacing ( ShortImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [8/13]

template<class T >
T itk_image_fix_negative_spacing ( T img)

◆ itk_image_fix_negative_spacing() [9/13]

template UCharImageType::Pointer itk_image_fix_negative_spacing ( UCharImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [10/13]

template UCharVecImageType::Pointer itk_image_fix_negative_spacing ( UCharVecImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [11/13]

template UInt32ImageType::Pointer itk_image_fix_negative_spacing ( UInt32ImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [12/13]

template UInt64ImageType::Pointer itk_image_fix_negative_spacing ( UInt64ImageType::Pointer image)

◆ itk_image_fix_negative_spacing() [13/13]

template UShortImageType::Pointer itk_image_fix_negative_spacing ( UShortImageType::Pointer image)

◆ itk_image_get_image_header()

template<class T >
void itk_image_get_image_header ( plm_long dim[3],
float offset[3],
float spacing[3],
Direction_cosines & dc,
const T image )

◆ itk_image_get_props()

void itk_image_get_props ( const std::string & fileName,
int * num_dimensions,
itk::ImageIOBase::IOPixelType * pixel_type,
itk::ImageIOBase::IOComponentType * component_type,
int * num_components )

◆ itk_image_get_volume_header() [1/2]

template void itk_image_get_volume_header ( Volume_header * ,
DeformationFieldType::Pointer  )

◆ itk_image_get_volume_header() [2/2]

template<class T >
void itk_image_get_volume_header ( Volume_header * vh,
T image )

◆ itk_image_header_copy() [1/8]

template<class T , class U >
void itk_image_header_copy ( T dest,
U src )

◆ itk_image_header_copy() [2/8]

template void itk_image_header_copy ( UCharImage2DType::Pointer ,
UCharVecImage2DType::Pointer  )

◆ itk_image_header_copy() [3/8]

template void itk_image_header_copy ( UCharImageType::Pointer ,
FloatImageType::Pointer  )

◆ itk_image_header_copy() [4/8]

template void itk_image_header_copy ( UCharImageType::Pointer ,
UCharVecImageType::Pointer  )

◆ itk_image_header_copy() [5/8]

template void itk_image_header_copy ( UCharVecImageType::Pointer ,
DeformationFieldType::Pointer  )

◆ itk_image_header_copy() [6/8]

template void itk_image_header_copy ( UCharVecImageType::Pointer ,
UCharImageType::Pointer  )

◆ itk_image_header_copy() [7/8]

template void itk_image_header_copy ( UCharVecImageType::Pointer ,
UCharVecImageType::Pointer  )

◆ itk_image_header_copy() [8/8]

template void itk_image_header_copy ( UCharVecImageType::Pointer ,
UInt32ImageType::Pointer  )

◆ itk_image_set_header() [1/14]

template void itk_image_set_header ( CharImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [2/14]

template void itk_image_set_header ( DeformationFieldType::Pointer ,
const Plm_image_header & pih )

◆ itk_image_set_header() [3/14]

template void itk_image_set_header ( DeformationFieldType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [4/14]

template void itk_image_set_header ( DoubleImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [5/14]

template void itk_image_set_header ( FloatImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [6/14]

template void itk_image_set_header ( Int32ImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [7/14]

template void itk_image_set_header ( ShortImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [8/14]

template<class T >
void itk_image_set_header ( T dest,
const Plm_image_header & pih )

◆ itk_image_set_header() [9/14]

template<class T >
void itk_image_set_header ( T dest,
const Plm_image_header * pih )

◆ itk_image_set_header() [10/14]

template void itk_image_set_header ( UCharImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [11/14]

template void itk_image_set_header ( UCharVecImageType::Pointer ,
const Plm_image_header & pih )

◆ itk_image_set_header() [12/14]

template void itk_image_set_header ( UCharVecImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [13/14]

template void itk_image_set_header ( UInt32ImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_image_set_header() [14/14]

template void itk_image_set_header ( UShortImageType::Pointer ,
const Plm_image_header * pih )

◆ itk_volume_center() [1/2]

template void itk_volume_center ( float center[3],
const FloatImageType::Pointer image )

◆ itk_volume_center() [2/2]

template<class T >
void itk_volume_center ( float center[3],
const T image )