plastimatch
Loading...
Searching...
No Matches
itk_image_stats.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _itk_image_stats_h_
5#define _itk_image_stats_h_
6
7#include "plmbase_config.h"
8#include "itk_image.h"
9#include "itk_mask.h"
10
15
16class Image_stats;
17
18/* -----------------------------------------------------------------------
19 Function prototypes
20 ----------------------------------------------------------------------- */
21template<class T> PLMBASE_API void itk_image_stats (
22 T img,
23 double *min_val,
24 double *max_val,
25 double *avg,
26 int *non_zero,
27 int *num_vox
28);
29
30template<class T> PLMBASE_API void itk_image_stats (
31 T img,
32 double *min_val,
33 double *max_val,
34 double *avg,
35 int *non_zero,
36 int *num_vox,
37 double *sigma
38);
39
40
41template<class T> PLMBASE_API void itk_masked_image_stats (
42 T img,
43 UCharImageType::Pointer mask,
44 Stats_operation stats_operation,
45 double *min_val,
46 double *max_val,
47 double *avg,
48 int *non_zero,
49 int *num_vox,
50 double *sigma
51);
52
53template<class T> PLMBASE_API void itk_masked_image_stats (
54 T img,
55 UCharImageType::Pointer mask,
56 Stats_operation stats_operation,
57 double *min_val,
58 double *max_val,
59 double *avg,
60 int *non_zero,
61 int *num_vox
62);
63template<class T> PLMBASE_API void itk_image_stats (
64 const T& img,
66);
67
68#endif
Definition image_stats.h:11
double max_val
Definition image_stats.h:16
plm_long num_vox
Definition image_stats.h:18
double min_val
Definition image_stats.h:15
void itk_image_stats(T img, double *min_val, double *max_val, double *avg, int *non_zero, int *num_vox)
Definition itk_image_stats.cxx:32
void itk_masked_image_stats(T img, UCharImageType::Pointer mask, Stats_operation stats_operation, double *min_val, double *max_val, double *avg, int *non_zero, int *num_vox, double *sigma)
Definition itk_image_stats.cxx:128
Stats_operation
Definition itk_image_stats.h:11
@ STATS_OPERATION_OUTSIDE
Definition itk_image_stats.h:13
@ STATS_OPERATION_INSIDE
Definition itk_image_stats.h:12
#define PLMBASE_API
Definition plmbase_config.h:19