plastimatch
Loading...
Searching...
No Matches
Distance_map Class Reference

#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
 

Member Enumeration Documentation

◆ Algorithm

Different distance map algorithms.

Enumerator
DANIELSSON 
MAURER 
ITK_DANIELSSON 
ITK_MAURER 
SONG_MAURER 

Constructor & Destructor Documentation

◆ Distance_map()

Distance_map::Distance_map ( )

◆ ~Distance_map()

Distance_map::~Distance_map ( )

Member Function Documentation

◆ get_output_image()

FloatImageType::Pointer Distance_map::get_output_image ( )

Return the gamma image as an ITK image.

◆ run()

void Distance_map::run ( )

Compute gamma value at each location in the input image.

◆ set_absolute_distance()

void Distance_map::set_absolute_distance ( bool absolute_distance)

Choose whether the output is unsigned distance.

◆ set_algorithm()

void Distance_map::set_algorithm ( const std::string & algorithm)

Choose which algorithm to use.

◆ set_input_image() [1/4]

void Distance_map::set_input_image ( const char * image_fn)

◆ set_input_image() [2/4]

void Distance_map::set_input_image ( const Plm_image::Pointer & image)

Set the input image as a Plm_image.

◆ set_input_image() [3/4]

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.

◆ set_input_image() [4/4]

void Distance_map::set_input_image ( const UCharImageType::Pointer image)

Set the input image as an ITK image.

◆ set_inside_is_positive()

void Distance_map::set_inside_is_positive ( bool inside_is_positive)

Choose whether the inside is positive or negative.
The default is inside negative.

◆ set_maximum_distance()

void Distance_map::set_maximum_distance ( float max_distance)

Set maximum distance.

◆ set_threading()

void Distance_map::set_threading ( Threading threading)

Set threading to THREADING_CPU_OPENMP or THREADING_CUDA.

◆ set_use_squared_distance()

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.

◆ set_volume_boundary_behavior()

void Distance_map::set_volume_boundary_behavior ( Volume_boundary_behavior vbb)

Set the volume boundary behavior, either ZERO_PADDING, EDGE_PADDING, or ADAPTIVE_PADDING.

◆ set_volume_boundary_type()

void Distance_map::set_volume_boundary_type ( Volume_boundary_type vbt)

Set the volume boundary type, either INTERIOR_EDGE or INTERIOR_FACE.

Member Data Documentation

◆ d_ptr

Distance_map_private* Distance_map::d_ptr

The documentation for this class was generated from the following files: