plastimatch
Loading...
Searching...
No Matches
bspline_header.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _bspline_header_h_
5#define _bspline_header_h_
6
7#include "plmbase_config.h"
8#include "direction_cosines.h"
9#include "plm_int.h"
10
11//TODO: Change type of dc to Direction_cosines*
12
13//class Direction_cosines;
15class Volume;
16class Volume_header;
17
22public:
24public:
25 float img_origin[3]; /* Image origin (in mm) */
26 float img_spacing[3]; /* Image spacing (in mm) */
27 plm_long img_dim[3]; /* Image size (in vox) */
28 Direction_cosines dc; /* Image direction cosines */
29 plm_long roi_offset[3]; /* Position of first vox in ROI (in vox) */
30 plm_long roi_dim[3]; /* Dimension of ROI (in vox) */
31 plm_long vox_per_rgn[3]; /* Knot spacing (in vox) */
32 float grid_spac[3]; /* Knot spacing (in mm) */
33 plm_long rdims[3]; /* # of regions in (x,y,z) */
34 plm_long cdims[3]; /* # of knots in (x,y,z) */
39
40public:
52 void set (
53 const float img_origin[3],
54 const float img_spacing[3],
55 const plm_long img_dim[3],
56 const plm_long roi_offset[3],
57 const plm_long roi_dim[3],
58 const plm_long vox_per_rgn[3],
59 const float direction_cosines[9]
60 );
61
68 void set (
69 const Plm_image_header *pih,
70 const float grid_spac[3]
71 );
72
79 void set_unaligned (
80 const float img_origin[3],
81 const float img_spacing[3],
82 const plm_long img_dim[3],
83 const plm_long roi_offset[3],
84 const plm_long roi_dim[3],
85 const float grid_spac[3],
86 const float direction_cosines[9]
87 );
88
95 void set_unaligned (
96 const Plm_image_header *pih,
97 const float grid_spac[3]
98 );
100};
101
102#endif
The Bspline_header class encapsulates the B-spline grid geometry.
Definition bspline_header.h:21
Direction_cosines dc
Definition bspline_header.h:28
int num_knots
Definition bspline_header.h:36
void get_volume_header(Volume_header *vh)
int num_coeff
Definition bspline_header.h:38
Definition direction_cosines.h:23
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
The Volume class represents a three-dimensional volume on a uniform grid. The volume can be located a...
Definition volume.h:38
#define PLMBASE_API
Definition plmbase_config.h:19