plastimatch
|
#include <distance_map.h>
Public Types | |
enum | Algorithm { DANIELSSON , MAURER , ITK_DANIELSSON , ITK_MAURER , SONG_MAURER } |
Different distance map algorithms. More... | |
Public Member Functions | |
Distance_map () | |
~Distance_map () | |
Inputs | |
void | set_input_image (const std::string &image_fn) |
Set the input image. The image will be loaded from the specified filename as a binary mask (unsigned char) image. | |
void | set_input_image (const char *image_fn) |
void | set_input_image (const UCharImageType::Pointer image) |
Set the input image as an ITK image. | |
void | set_input_image (const Plm_image::Pointer &image) |
Set the input image as a Plm_image. | |
void | set_use_squared_distance (bool use_squared_distance) |
Choose whether the output image is distance or squared distance. The default is not squared distance. | |
void | set_inside_is_positive (bool inside_is_positive) |
Choose whether the inside is positive or negative. The default is inside negative. | |
void | set_absolute_distance (bool absolute_distance) |
Choose whether the output is unsigned distance. | |
void | set_algorithm (const std::string &algorithm) |
Choose which algorithm to use. | |
void | set_maximum_distance (float max_distance) |
Set maximum distance. | |
void | set_volume_boundary_behavior (Volume_boundary_behavior vbb) |
Set the volume boundary behavior, either ZERO_PADDING, EDGE_PADDING, or ADAPTIVE_PADDING. | |
void | set_volume_boundary_type (Volume_boundary_type vbt) |
Set the volume boundary type, either INTERIOR_EDGE or INTERIOR_FACE. | |
void | set_threading (Threading threading) |
Set threading to THREADING_CPU_OPENMP or THREADING_CUDA. | |
Execution | |
void | run () |
Compute gamma value at each location in the input image. | |
Outputs | |
FloatImageType::Pointer | get_output_image () |
Return the gamma image as an ITK image. | |
Public Attributes | |
Distance_map_private * | d_ptr |
Distance_map::Distance_map | ( | ) |
Distance_map::~Distance_map | ( | ) |
FloatImageType::Pointer Distance_map::get_output_image | ( | ) |
Return the gamma image as an ITK image.
void Distance_map::run | ( | ) |
Compute gamma value at each location in the input image.
void Distance_map::set_absolute_distance | ( | bool | absolute_distance | ) |
Choose whether the output is unsigned distance.
void Distance_map::set_algorithm | ( | const std::string & | algorithm | ) |
Choose which algorithm to use.
void Distance_map::set_input_image | ( | const char * | image_fn | ) |
void Distance_map::set_input_image | ( | const Plm_image::Pointer & | image | ) |
Set the input image as a Plm_image.
void Distance_map::set_input_image | ( | const std::string & | image_fn | ) |
Set the input image. The image will be loaded from the specified filename as a binary mask (unsigned char) image.
void Distance_map::set_input_image | ( | const UCharImageType::Pointer | image | ) |
Set the input image as an ITK image.
void Distance_map::set_inside_is_positive | ( | bool | inside_is_positive | ) |
Choose whether the inside is positive or negative.
The default is inside negative.
void Distance_map::set_maximum_distance | ( | float | max_distance | ) |
Set maximum distance.
void Distance_map::set_threading | ( | Threading | threading | ) |
Set threading to THREADING_CPU_OPENMP or THREADING_CUDA.
void Distance_map::set_use_squared_distance | ( | bool | use_squared_distance | ) |
Choose whether the output image is distance or squared distance. The default is not squared distance.
void Distance_map::set_volume_boundary_behavior | ( | Volume_boundary_behavior | vbb | ) |
Set the volume boundary behavior, either ZERO_PADDING, EDGE_PADDING, or ADAPTIVE_PADDING.
void Distance_map::set_volume_boundary_type | ( | Volume_boundary_type | vbt | ) |
Set the volume boundary type, either INTERIOR_EDGE or INTERIOR_FACE.
Distance_map_private* Distance_map::d_ptr |