plastimatch
Loading...
Searching...
No Matches
src
base
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;
14
class
Plm_image_header
;
15
class
Volume
;
16
class
Volume_header
;
17
21
class
PLMBASE_API
Bspline_header
{
22
public
:
23
Bspline_header
();
24
public
:
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) */
36
int
num_knots
;
38
int
num_coeff
;
39
40
public
:
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
);
99
void
get_volume_header
(
Volume_header
*vh);
100
};
101
102
#endif
Bspline_header
The Bspline_header class encapsulates the B-spline grid geometry.
Definition
bspline_header.h:21
Bspline_header::dc
Direction_cosines dc
Definition
bspline_header.h:28
Bspline_header::num_knots
int num_knots
Definition
bspline_header.h:36
Bspline_header::get_volume_header
void get_volume_header(Volume_header *vh)
Bspline_header::num_coeff
int num_coeff
Definition
bspline_header.h:38
Direction_cosines
Definition
direction_cosines.h:23
Plm_image_header
The Plm_image_header class defines the geometry of an image. It defines image origin,...
Definition
plm_image_header.h:24
Volume_header
Definition
volume_header.h:17
Volume
The Volume class represents a three-dimensional volume on a uniform grid. The volume can be located a...
Definition
volume.h:38
direction_cosines.h
plm_int.h
plmbase_config.h
PLMBASE_API
#define PLMBASE_API
Definition
plmbase_config.h:19
Generated on Wed Oct 30 2024 14:54:42 for plastimatch by
1.11.0