plastimatch
Loading...
Searching...
No Matches
dice_statistics.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _dice_statistics_h_
5#define _dice_statistics_h_
6
7#include "plmutil_config.h"
8#include "itk_image_type.h"
9
10class Plm_image;
11class Dice_statistics_private;
12
27public:
30public:
31 Dice_statistics_private *d_ptr;
32public:
33
36
38 void set_reference_image (const char* image_fn);
40 void set_reference_image (const UCharImageType::Pointer& image);
43 void set_compare_image (const char* image_fn);
45 void set_compare_image (const UCharImageType::Pointer& image);
47
50
51 void run ();
53
56
57 float get_dice ();
59 float get_sensitivity ();
61 float get_specificity ();
64 size_t get_true_positives ();
67 size_t get_true_negatives ();
70 size_t get_false_positives ();
73 size_t get_false_negatives ();
81 double get_reference_volume ();
83 double get_compare_volume ();
85 void debug ();
87};
88
89#endif
double get_reference_volume()
Return the volume of the reference image structure.
Definition dice_statistics.cxx:242
size_t get_true_negatives()
Return the number of true negative voxels, i.e. negative reference voxels that are negative in compar...
Definition dice_statistics.cxx:212
double get_compare_volume()
Return the volume of the compare image structure.
Definition dice_statistics.cxx:248
void debug()
Display debugging information to stdout.
Definition dice_statistics.cxx:255
float get_dice()
Return the Dice coefficient value.
Definition dice_statistics.cxx:183
void set_reference_image(const char *image_fn)
Set the reference image. The image will be loaded from the specified filename.
Definition dice_statistics.cxx:55
size_t get_true_positives()
Return the number of true positive voxels, i.e. positive reference voxels that are positive in compar...
Definition dice_statistics.cxx:206
size_t get_false_positives()
Return the number of false positive voxels, i.e. negative reference voxels that are positive in compa...
Definition dice_statistics.cxx:218
float get_specificity()
Return specificity coefficient value.
Definition dice_statistics.cxx:200
DoubleVector3DType get_compare_center()
Return the location of the center of mass of the compare image structure.
Definition dice_statistics.cxx:236
Dice_statistics()
Definition dice_statistics.cxx:44
DoubleVector3DType get_reference_center()
Return the location of the center of mass of the reference image structure.
Definition dice_statistics.cxx:230
float get_sensitivity()
Return sensitivity coefficient value.
Definition dice_statistics.cxx:194
Dice_statistics_private * d_ptr
Definition dice_statistics.h:31
size_t get_false_negatives()
Return the number of false negative voxels, i.e. positive reference voxels that are negative in compa...
Definition dice_statistics.cxx:224
void set_compare_image(const char *image_fn)
Set the compare image. The image will be loaded from the specified filename.
Definition dice_statistics.cxx:68
void run()
Compute dice statistics.
Definition dice_statistics.cxx:81
The Plm_image class represents a three-dimensional volume. The volume is an abstraction that can co...
Definition plm_image.h:27
itk::Vector< double, 3 > DoubleVector3DType
Definition itk_point.h:23
#define PLMUTIL_API
Definition plmutil_config.h:26