Converts a label image to a label map and valuates the shape attributes.
More...
#include <sitkLabelShapeStatisticsImageFilter.h>
|
static bool | GetGlobalDefaultDebug () |
|
static void | GlobalDefaultDebugOff () |
|
static void | GlobalDefaultDebugOn () |
|
static void | SetGlobalDefaultDebug (bool debugFlag) |
|
static void | GlobalWarningDisplayOn () |
|
static void | GlobalWarningDisplayOff () |
|
static void | SetGlobalWarningDisplay (bool flag) |
|
static bool | GetGlobalWarningDisplay () |
|
static void | SetGlobalDefaultNumberOfThreads (unsigned int n) |
|
static unsigned int | GetGlobalDefaultNumberOfThreads () |
|
static double | GetGlobalDefaultCoordinateTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultCoordinateTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
static double | GetGlobalDefaultDirectionTolerance () |
| Access the global tolerance to determine congruent spaces. More...
|
|
static void | SetGlobalDefaultDirectionTolerance (double) |
| Access the global tolerance to determine congruent spaces. More...
|
|
virtual unsigned long | AddITKObserver (const itk::EventObject &, itk::Command *) |
|
virtual itk::ProcessObject * | GetActiveProcess () |
|
virtual void | OnActiveProcessDelete () |
|
virtual void | onCommandDelete (const itk::simple::Command *cmd) throw () |
|
virtual void | PreUpdate (itk::ProcessObject *p) |
|
virtual void | RemoveITKObserver (EventCommand &e) |
|
| NonCopyable () |
|
static void | FixNonZeroIndex (TImageType *img) |
|
template<class TImageType > |
static TImageType::ConstPointer | CastImageToITK (const Image &img) |
|
template<class TImageType > |
static Image | CastITKToImage (TImageType *img) |
|
template<class TPixelType , unsigned int VImageDimension, unsigned int VLength, template< typename, unsigned int > class TVector> |
static Image | CastITKToImage (itk::Image< TVector< TPixelType, VLength >, VImageDimension > *img) |
|
static const itk::EventObject & | GetITKEventObject (EventEnum e) |
|
template<typename T > |
static std::ostream & | ToStringHelper (std::ostream &os, const T &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const signed char &v) |
|
static std::ostream & | ToStringHelper (std::ostream &os, const unsigned char &v) |
|
Converts a label image to a label map and valuates the shape attributes.
A convenient class that converts a label image to a label map and valuates the shape attribute at once.
This implementation was taken from the Insight Journal paper:
https://hdl.handle.net/1926/584 or http://www.insight-journal.org/browse/publication/176
- Author
- Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France.
- See also
- ShapeLabelObject , LabelShapeOpeningImageFilter , LabelStatisticsOpeningImageFilter
- Wiki Examples:
- Convert an itk::Image consisting of labeled regions to a ShapeLabelMap
- See also
- itk::LabelImageToShapeLabelMapFilter for the Doxygen on the original ITK class.
Definition at line 56 of file sitkLabelShapeStatisticsImageFilter.h.
typedef void(Self::* itk::simple::LabelShapeStatisticsImageFilter::MemberFunctionType) (const Image &image1) |
|
private |
itk::simple::LabelShapeStatisticsImageFilter::LabelShapeStatisticsImageFilter |
( |
| ) |
|
Default Constructor that takes no arguments and initializes default parameters
itk::simple::LabelShapeStatisticsImageFilter::~LabelShapeStatisticsImageFilter |
( |
| ) |
|
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputeFeretDiameterOff |
( |
| ) |
|
|
inline |
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputeFeretDiameterOn |
( |
| ) |
|
|
inline |
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputePerimeterOff |
( |
| ) |
|
|
inline |
Self& itk::simple::LabelShapeStatisticsImageFilter::ComputePerimeterOn |
( |
| ) |
|
|
inline |
void itk::simple::LabelShapeStatisticsImageFilter::Execute |
( |
const Image & |
image1 | ) |
|
Execute the filter on the input image
void itk::simple::LabelShapeStatisticsImageFilter::Execute |
( |
const Image & |
image1, |
|
|
double |
backgroundValue, |
|
|
bool |
computeFeretDiameter, |
|
|
bool |
computePerimeter |
|
) |
| |
Execute the filter on the input image with the given parameters
template<class TImageType >
void itk::simple::LabelShapeStatisticsImageFilter::ExecuteInternal |
( |
const Image & |
image1 | ) |
|
|
private |
double itk::simple::LabelShapeStatisticsImageFilter::GetBackgroundValue |
( |
| ) |
const |
|
inline |
std::vector<unsigned int> itk::simple::LabelShapeStatisticsImageFilter::GetBoundingBox |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 116 of file sitkLabelShapeStatisticsImageFilter.h.
std::vector<double> itk::simple::LabelShapeStatisticsImageFilter::GetCentroid |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 125 of file sitkLabelShapeStatisticsImageFilter.h.
bool itk::simple::LabelShapeStatisticsImageFilter::GetComputeFeretDiameter |
( |
| ) |
const |
|
inline |
Set/Get whether the maximum Feret diameter should be computed or not. Default value is false, because of the high computation time required.
Definition at line 94 of file sitkLabelShapeStatisticsImageFilter.h.
bool itk::simple::LabelShapeStatisticsImageFilter::GetComputePerimeter |
( |
| ) |
const |
|
inline |
double itk::simple::LabelShapeStatisticsImageFilter::GetElongation |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 134 of file sitkLabelShapeStatisticsImageFilter.h.
std::vector<double> itk::simple::LabelShapeStatisticsImageFilter::GetEquivalentEllipsoidDiameter |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 143 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetEquivalentSphericalPerimeter |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 152 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetEquivalentSphericalRadius |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 161 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetFeretDiameter |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 170 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetFlatness |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 179 of file sitkLabelShapeStatisticsImageFilter.h.
std::vector<int64_t> itk::simple::LabelShapeStatisticsImageFilter::GetLabels |
( |
| ) |
const |
|
inline |
std::string itk::simple::LabelShapeStatisticsImageFilter::GetName |
( |
| ) |
const |
|
inlinevirtual |
uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfLabels |
( |
| ) |
|
Return the number of labels after execution.
uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfPixels |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 196 of file sitkLabelShapeStatisticsImageFilter.h.
uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfPixelsOnBorder |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 205 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetPerimeter |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 214 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetPerimeterOnBorder |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 223 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetPerimeterOnBorderRatio |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 232 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetPhysicalSize |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 241 of file sitkLabelShapeStatisticsImageFilter.h.
std::vector<double> itk::simple::LabelShapeStatisticsImageFilter::GetPrincipalAxes |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 250 of file sitkLabelShapeStatisticsImageFilter.h.
std::vector<double> itk::simple::LabelShapeStatisticsImageFilter::GetPrincipalMoments |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 259 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::GetRoundness |
( |
int64_t |
label | ) |
const |
|
inline |
This is an active measurement. It may be accessed while the filter is being executing in command call-backs and can be accessed after execution.
Definition at line 268 of file sitkLabelShapeStatisticsImageFilter.h.
double itk::simple::LabelShapeStatisticsImageFilter::HasLabel |
( |
int64_t |
label | ) |
|
Does the specified label exist? Can only be called after a call a call to Update().
Self& itk::simple::LabelShapeStatisticsImageFilter::SetBackgroundValue |
( |
double |
BackgroundValue | ) |
|
|
inline |
Self& itk::simple::LabelShapeStatisticsImageFilter::SetComputeFeretDiameter |
( |
bool |
ComputeFeretDiameter | ) |
|
|
inline |
Set/Get whether the maximum Feret diameter should be computed or not. Default value is false, because of the high computation time required.
Definition at line 85 of file sitkLabelShapeStatisticsImageFilter.h.
Self& itk::simple::LabelShapeStatisticsImageFilter::SetComputePerimeter |
( |
bool |
ComputePerimeter | ) |
|
|
inline |
Set/Get whether the perimeter should be computed or not. Default value is false, because of the high computation time required.
Definition at line 99 of file sitkLabelShapeStatisticsImageFilter.h.
std::string itk::simple::LabelShapeStatisticsImageFilter::ToString |
( |
| ) |
const |
|
virtual |
double itk::simple::LabelShapeStatisticsImageFilter::m_BackgroundValue |
|
private |
bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputeFeretDiameter |
|
private |
bool itk::simple::LabelShapeStatisticsImageFilter::m_ComputePerimeter |
|
private |
std::vector<int64_t> itk::simple::LabelShapeStatisticsImageFilter::m_Labels |
|
private |
nsstd::function<std::vector<unsigned int>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetBoundingBox |
|
private |
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetCentroid |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetElongation |
|
private |
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentEllipsoidDiameter |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentSphericalPerimeter |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetEquivalentSphericalRadius |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetFeretDiameter |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetFlatness |
|
private |
nsstd::function<uint64_t(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetNumberOfPixels |
|
private |
nsstd::function<uint64_t(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetNumberOfPixelsOnBorder |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeter |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeterOnBorder |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPerimeterOnBorderRatio |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPhysicalSize |
|
private |
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPrincipalAxes |
|
private |
nsstd::function<std::vector<double>int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetPrincipalMoments |
|
private |
nsstd::function<double(int64_t)> itk::simple::LabelShapeStatisticsImageFilter::m_pfGetRoundness |
|
private |
The documentation for this class was generated from the following file: