plastimatch
Loading...
Searching...
No Matches
image_center.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _image_center_h_
5#define _image_center_h_
6
7#include "plmutil_config.h"
8#include "itk_image_type.h"
9#include "plm_image.h"
10
11class Image_center_private;
12
17public:
18 Image_center ();
20public:
21 Image_center_private *d_ptr;
22public:
23
26
27 void set_image (const UCharImageType::Pointer& image);
29 void set_image (const Plm_image::Pointer& image);
31
34
35 void run ();
37
40
41 DoubleVector3DType get_image_center_of_mass ();
43};
44
45#endif
The Image_center class computes the center of mass of a binary image.
Definition image_center.h:16
Image_center_private * d_ptr
Definition image_center.h:21
itk::Vector< double, 3 > DoubleVector3DType
Definition itk_point.h:23
#define PLMUTIL_API
Definition plmutil_config.h:26