plastimatch
|
#include <aperture.h>
Public Types | |
typedef Aperture | Self |
typedef std::shared_ptr< Self > | Pointer |
Public Member Functions | |
Aperture () | |
~Aperture () | |
Aperture (const Aperture::Pointer &) | |
Inputs | |
const plm_long * | get_dim () const |
Get the aperture dimension, in pixels. | |
plm_long | get_dim (int dim) const |
Get the i or j aperture dimension, in pixels. | |
void | set_dim (const plm_long *dim) |
Set the aperture dimension, in pixels. | |
const double * | get_center () const |
Get the aperture center, in pixels. | |
double | get_center (int dim) const |
Get the aperture center in the i or j dimension, in pixels. | |
void | set_center (const float *center) |
Set the aperture center, in pixels. | |
void | set_center (const double *center) |
void | set_origin (const float *center) |
Set the aperture origin, in mm. | |
void | set_origin (const double *center) |
double | get_distance () const |
Get the aperture offset: the distance from the beam source to closest point on the aperture plane. | |
void | set_distance (double distance) |
Get the aperture offset: the distance from the beam source to closest point on the aperture plane. | |
const double * | get_spacing () const |
Get the aperture spacing: the distance between sampling points in the aperture plane, in mm. | |
double | get_spacing (int dim) const |
Get the aperture spacing in the i or j dimension, in mm. | |
void | set_spacing (const float *spacing) |
Get the aperture spacing: the distance between sampling points in the aperture plane. | |
void | set_spacing (const double *spacing) |
void | set_vup (const float *vup) |
Get the aperture vup vector, which is the vector that orients the top of the aperture in room coordinates. | |
void | allocate_aperture_images () |
Allocate aperture and range compensator images. | |
bool | have_aperture_image () |
Test if the aperture has a bitmap image describing shape. | |
Plm_image::Pointer & | get_aperture_image () |
Get the aperture image as Plm_image. | |
Volume::Pointer & | get_aperture_volume () |
Get the aperture image as Volume. | |
Volume * | get_aperture_vol () |
void | set_aperture_image (const char *ap_filename) |
Load the aperture image from a file. | |
void | set_aperture_volume (Volume::Pointer ap) |
Load the aperture volume from a file. | |
bool | have_range_compensator_image () |
Test if the aperture has a float image describing range compensator thicknesses. | |
Plm_image::Pointer & | get_range_compensator_image () |
Get the range_compensator image as Plm_image. | |
Volume::Pointer & | get_range_compensator_volume () |
Get the range_compensator image as Volume. | |
void | set_range_compensator_image (const char *rc_filename) |
Load the range_compensator image from a file. | |
void | set_range_compensator_volume (Volume::Pointer ap) |
Load the range_compensator volume from a file. | |
void | apply_smearing_to_aperture (float smearing, float target_depth) |
Expand aperture and smear compensator. The smearing parameters is defined as mm around the target in the beam eye view frame at the target minimal depth. | |
void | apply_smearing_to_range_compensator (float smearing, float target_depth) |
Static Public Member Functions | |
static Aperture::Pointer | New () |
static Aperture::Pointer | New (Aperture *t) |
template<class U1 > | |
static Aperture::Pointer | New (const U1 &u1) |
template<class U1 , class U2 > | |
static Aperture::Pointer | New (const U1 &u1, const U2 &u2) |
template<class U1 , class U2 , class U3 > | |
static Aperture::Pointer | New (const U1 &u1, const U2 &u2, const U3 &u3) |
template<class U1 , class U2 , class U3 , class U4 , class U5 , class U6 > | |
static Aperture::Pointer | New (const U1 &u1, const U2 &u2, const U3 &u3, const U4 &u4, const U5 &u5, const U6 &u6) |
Public Attributes | |
Aperture_private * | d_ptr |
double | vup [3] |
double | ic_room [3] |
double | ul_room [3] |
double | incr_r [3] |
double | incr_c [3] |
double | nrm [3] |
double | pdn [3] |
double | prt [3] |
double | tmp [3] |
typedef std::shared_ptr<Self> Aperture::Pointer |
typedef Aperture Aperture::Self |
Aperture::Aperture | ( | ) |
Aperture::~Aperture | ( | ) |
Aperture::Aperture | ( | const Aperture::Pointer & | ap | ) |
void Aperture::allocate_aperture_images | ( | ) |
Allocate aperture and range compensator images.
void Aperture::apply_smearing_to_aperture | ( | float | smearing, |
float | target_depth ) |
Expand aperture and smear compensator. The smearing parameters is defined as mm around the target in the beam eye view frame at the target minimal depth.
void Aperture::apply_smearing_to_range_compensator | ( | float | smearing, |
float | target_depth ) |
Plm_image::Pointer & Aperture::get_aperture_image | ( | ) |
Get the aperture image as Plm_image.
Volume * Aperture::get_aperture_vol | ( | ) |
Volume::Pointer & Aperture::get_aperture_volume | ( | ) |
Get the aperture image as Volume.
const double * Aperture::get_center | ( | ) | const |
Get the aperture center, in pixels.
double Aperture::get_center | ( | int | dim | ) | const |
Get the aperture center in the i or j dimension, in pixels.
const plm_long * Aperture::get_dim | ( | ) | const |
Get the aperture dimension, in pixels.
plm_long Aperture::get_dim | ( | int | dim | ) | const |
Get the i or j aperture dimension, in pixels.
double Aperture::get_distance | ( | ) | const |
Get the aperture offset: the distance from the beam source to closest point on the aperture plane.
Plm_image::Pointer & Aperture::get_range_compensator_image | ( | ) |
Get the range_compensator image as Plm_image.
Volume::Pointer & Aperture::get_range_compensator_volume | ( | ) |
Get the range_compensator image as Volume.
const double * Aperture::get_spacing | ( | ) | const |
Get the aperture spacing: the distance between sampling points in the aperture plane, in mm.
double Aperture::get_spacing | ( | int | dim | ) | const |
Get the aperture spacing in the i or j dimension, in mm.
bool Aperture::have_aperture_image | ( | ) |
Test if the aperture has a bitmap image describing shape.
bool Aperture::have_range_compensator_image | ( | ) |
Test if the aperture has a float image describing range compensator thicknesses.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
void Aperture::set_aperture_image | ( | const char * | ap_filename | ) |
Load the aperture image from a file.
void Aperture::set_aperture_volume | ( | Volume::Pointer | ap | ) |
Load the aperture volume from a file.
void Aperture::set_center | ( | const double * | center | ) |
void Aperture::set_center | ( | const float * | center | ) |
Set the aperture center, in pixels.
void Aperture::set_dim | ( | const plm_long * | dim | ) |
Set the aperture dimension, in pixels.
void Aperture::set_distance | ( | double | distance | ) |
Get the aperture offset: the distance from the beam source to closest point on the aperture plane.
void Aperture::set_origin | ( | const double * | center | ) |
void Aperture::set_origin | ( | const float * | center | ) |
Set the aperture origin, in mm.
void Aperture::set_range_compensator_image | ( | const char * | rc_filename | ) |
Load the range_compensator image from a file.
void Aperture::set_range_compensator_volume | ( | Volume::Pointer | ap | ) |
Load the range_compensator volume from a file.
void Aperture::set_spacing | ( | const double * | spacing | ) |
void Aperture::set_spacing | ( | const float * | spacing | ) |
Get the aperture spacing: the distance between sampling points in the aperture plane.
void Aperture::set_vup | ( | const float * | vup | ) |
Get the aperture vup vector, which is the vector that orients the top of the aperture in room coordinates.
Aperture_private* Aperture::d_ptr |
double Aperture::ic_room[3] |
double Aperture::incr_c[3] |
double Aperture::incr_r[3] |
double Aperture::nrm[3] |
double Aperture::pdn[3] |
double Aperture::prt[3] |
double Aperture::tmp[3] |
double Aperture::ul_room[3] |
double Aperture::vup[3] |