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 ();
76 DoubleVector3DType get_reference_center ();
79 DoubleVector3DType get_compare_center ();
81 double get_reference_volume ();
83 double get_compare_volume ();
85 void debug ();
87};
88
89#endif
The Dice_statistics class computes a Dice statistic for the overlap between two regions....
Definition dice_statistics.h:26
Dice_statistics_private * d_ptr
Definition dice_statistics.h:31
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