4#ifndef _itk_volume_header_h_
5#define _itk_volume_header_h_
22 float origin[3],
float spacing[3], plm_long dim[3])
24 this->set_from_gpuit (origin, spacing, dim, 0);
27 float origin[3],
float spacing[3],
28 plm_long dim[3],
float direction_cosines[9])
30 this->set_from_gpuit (origin, spacing, dim, direction_cosines);
34 int Size (
int d)
const {
return m_region.GetSize()[d]; }
41 void set_origin (
float origin[3]);
42 void set_spacing (
float spacing[3]);
43 void set_dim (plm_long dim[3]);
45 set_from_gpuit (
float gpuit_origin[3],
46 float gpuit_spacing[3],
47 plm_long gpuit_dim[3],
48 float gpuit_direction_cosines[9]);
53 m_origin = image->GetOrigin ();
54 m_spacing = image->GetSpacing ();
55 m_region = image->GetLargestPossibleRegion ();
56 m_direction = image->GetDirection ();
65 void get_origin (
float origin[3]);
66 void get_spacing (
float spacing[3]);
67 void get_dim (plm_long dim[3]);
68 void get_direction_cosines (
69 float direction_cosines[9]);
71 void print (
void)
const;
72 void get_image_center (
float center[3]);
80 float direction_cosines[9],
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
int compare(const void *a, const void *b)
Definition simplify_points.cxx:19