plastimatch
|
The Dice_statistics class computes a Dice statistic for the overlap between two regions. Dice is defined as. More...
#include <dice_statistics.h>
Public Member Functions | |
Dice_statistics () | |
~Dice_statistics () | |
Inputs | |
void | set_reference_image (const char *image_fn) |
Set the reference image. The image will be loaded from the specified filename. | |
void | set_reference_image (const UCharImageType::Pointer &image) |
Set the reference image as an ITK image. | |
void | set_compare_image (const char *image_fn) |
Set the compare image. The image will be loaded from the specified filename. | |
void | set_compare_image (const UCharImageType::Pointer &image) |
Set the compare image as an ITK image. | |
Execution | |
void | run () |
Compute dice statistics. | |
Outputs | |
float | get_dice () |
Return the Dice coefficient value. | |
float | get_sensitivity () |
Return sensitivity coefficient value. | |
float | get_specificity () |
Return specificity coefficient value. | |
size_t | get_true_positives () |
Return the number of true positive voxels, i.e. positive reference voxels that are positive in compare image. | |
size_t | get_true_negatives () |
Return the number of true negative voxels, i.e. negative reference voxels that are negative in compare image. | |
size_t | get_false_positives () |
Return the number of false positive voxels, i.e. negative reference voxels that are positive in compare image. | |
size_t | get_false_negatives () |
Return the number of false negative voxels, i.e. positive reference voxels that are negative in compare image. | |
DoubleVector3DType | get_reference_center () |
Return the location of the center of mass of the reference image structure. | |
DoubleVector3DType | get_compare_center () |
Return the location of the center of mass of the compare image structure. | |
double | get_reference_volume () |
Return the volume of the reference image structure. | |
double | get_compare_volume () |
Return the volume of the compare image structure. | |
void | debug () |
Display debugging information to stdout. | |
Public Attributes | |
Dice_statistics_private * | d_ptr |
The Dice_statistics class computes a Dice statistic for the overlap between two regions. Dice is defined as.
A value of zero means X and Y have no overlap, where a value of one means the two regions are the same.
If the images do not have the same size and resolution, the compare image will be resampled onto the reference image geometry prior to comparison.
Dice_statistics::Dice_statistics | ( | ) |
Dice_statistics::~Dice_statistics | ( | ) |
void Dice_statistics::debug | ( | ) |
Display debugging information to stdout.
DoubleVector3DType Dice_statistics::get_compare_center | ( | ) |
Return the location of the center of mass of the compare image structure.
double Dice_statistics::get_compare_volume | ( | ) |
Return the volume of the compare image structure.
float Dice_statistics::get_dice | ( | ) |
Return the Dice coefficient value.
size_t Dice_statistics::get_false_negatives | ( | ) |
Return the number of false negative voxels, i.e. positive reference voxels that are negative in compare image.
size_t Dice_statistics::get_false_positives | ( | ) |
Return the number of false positive voxels, i.e. negative reference voxels that are positive in compare image.
DoubleVector3DType Dice_statistics::get_reference_center | ( | ) |
Return the location of the center of mass of the reference image structure.
double Dice_statistics::get_reference_volume | ( | ) |
Return the volume of the reference image structure.
float Dice_statistics::get_sensitivity | ( | ) |
Return sensitivity coefficient value.
float Dice_statistics::get_specificity | ( | ) |
Return specificity coefficient value.
size_t Dice_statistics::get_true_negatives | ( | ) |
Return the number of true negative voxels, i.e. negative reference voxels that are negative in compare image.
size_t Dice_statistics::get_true_positives | ( | ) |
Return the number of true positive voxels, i.e. positive reference voxels that are positive in compare image.
void Dice_statistics::run | ( | ) |
Compute dice statistics.
void Dice_statistics::set_compare_image | ( | const char * | image_fn | ) |
Set the compare image. The image will be loaded from the specified filename.
void Dice_statistics::set_compare_image | ( | const UCharImageType::Pointer & | image | ) |
Set the compare image as an ITK image.
void Dice_statistics::set_reference_image | ( | const char * | image_fn | ) |
Set the reference image. The image will be loaded from the specified filename.
void Dice_statistics::set_reference_image | ( | const UCharImageType::Pointer & | image | ) |
Set the reference image as an ITK image.
Dice_statistics_private* Dice_statistics::d_ptr |