plastimatch
Loading...
Searching...
No Matches
itk_image.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _itk_image_h_
5#define _itk_image_h_
6
7#include "plmbase_config.h"
8#include "plm_int.h"
9
10#include "itk_direction_type.h"
11#include "itk_image_type.h"
12
14class Volume_header;
15
16/* Other types */
17typedef itk::Index < 3 > IndexType;
18typedef itk::Point < double, 3 > OriginType;
19typedef itk::ImageRegion < 3 > RegionType;
20typedef itk::Size < 3 > SizeType;
21typedef itk::Vector < double, 3 > SpacingType;
22typedef itk::VariableLengthVector<unsigned char> UCharVecType;
23
24/* -----------------------------------------------------------------------
25 Function prototypes
26 ----------------------------------------------------------------------- */
28 const std::string& fileName,
29 int *num_dimensions,
30 itk::ImageIOBase::IOPixelType *pixel_type,
31 itk::ImageIOBase::IOComponentType *component_type,
32 int *num_components
33);
34
35template<class T> PLMBASE_API void get_image_header (plm_long dim[3], float offset[3], float spacing[3], T image);
36template<class T> PLMBASE_API void itk_image_get_volume_header (Volume_header *vh, T image);
37template<class T> PLMBASE_API void itk_image_set_header (T image, const Plm_image_header *pih);
38template<class T> PLMBASE_API void itk_image_set_header (T image, const Plm_image_header& pih);
39template<class T, class U> PLMBASE_API void itk_image_header_copy (T dest, U src);
40template<class T> PLMBASE_API void itk_volume_center (float center[3], const T image);
41template<class T> PLMBASE_API T itk_image_fix_negative_spacing (T img);
42
43#endif
The Plm_image_header class defines the geometry of an image. It defines image origin,...
Definition: plm_image_header.h:24
Definition: volume_header.h:17
itk::Size< 3 > SizeType
Definition: itk_image.h:20
void itk_image_header_copy(T dest, U src)
Definition: itk_image.cxx:132
itk::VariableLengthVector< unsigned char > UCharVecType
Definition: itk_image.h:22
void itk_image_get_volume_header(Volume_header *vh, T image)
Definition: itk_image.cxx:107
void get_image_header(plm_long dim[3], float offset[3], float spacing[3], T image)
Definition: itk_image.cxx:58
T itk_image_fix_negative_spacing(T img)
Definition: itk_image.cxx:160
itk::Index< 3 > IndexType
Definition: itk_image.h:17
EXTERNC 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)
Definition: itk_image.cxx:25
void itk_volume_center(float center[3], const T image)
Definition: itk_image.cxx:151
void itk_image_set_header(T image, const Plm_image_header *pih)
Definition: itk_image.cxx:115
itk::Vector< double, 3 > SpacingType
Definition: itk_image.h:21
itk::Point< double, 3 > OriginType
Definition: itk_image.h:18
itk::ImageRegion< 3 > RegionType
Definition: itk_image.h:19
#define PLMBASE_API
Definition: plmbase_config.h:19
#define PLMBASE_C_API
Definition: plmbase_config.h:18