SimpleITK
1.2.4
|
Converts a label image to a label map and valuates the shape attributes. More...
#include <sitkLabelShapeStatisticsImageFilter.h>
Public Types | |
typedef IntegerPixelIDTypeList | PixelIDTypeList |
typedef LabelShapeStatisticsImageFilter | Self |
Public Types inherited from itk::simple::ImageFilter< 1 > | |
typedef ImageFilter | Self |
Public Types inherited from itk::simple::ProcessObject | |
typedef ProcessObject | Self |
Public Member Functions | |
Self & | ComputeFeretDiameterOff () |
Self & | ComputeFeretDiameterOn () |
Self & | ComputeOrientedBoundingBoxOff () |
Self & | ComputeOrientedBoundingBoxOn () |
Self & | ComputePerimeterOff () |
Self & | ComputePerimeterOn () |
void | Execute (const Image &image1) |
void | Execute (const Image &image1, double backgroundValue, bool computeFeretDiameter, bool computePerimeter, bool computeOrientedBoundingBox) |
double | GetBackgroundValue () const |
std::vector< unsigned int > | GetBoundingBox (int64_t label) const |
std::vector< double > | GetCentroid (int64_t label) const |
bool | GetComputeFeretDiameter () const |
bool | GetComputeOrientedBoundingBox () const |
bool | GetComputePerimeter () const |
double | GetElongation (int64_t label) const |
std::vector< double > | GetEquivalentEllipsoidDiameter (int64_t label) const |
double | GetEquivalentSphericalPerimeter (int64_t label) const |
double | GetEquivalentSphericalRadius (int64_t label) const |
double | GetFeretDiameter (int64_t label) const |
double | GetFlatness (int64_t label) const |
std::vector< int64_t > | GetLabels () const |
std::string | GetName () const |
uint64_t | GetNumberOfLabels () |
uint64_t | GetNumberOfPixels (int64_t label) const |
uint64_t | GetNumberOfPixelsOnBorder (int64_t label) const |
std::vector< double > | GetOrientedBoundingBoxDirection (int64_t label) const |
std::vector< double > | GetOrientedBoundingBoxOrigin (int64_t label) const |
std::vector< double > | GetOrientedBoundingBoxSize (int64_t label) const |
std::vector< double > | GetOrientedBoundingBoxVertices (int64_t label) const |
double | GetPerimeter (int64_t label) const |
double | GetPerimeterOnBorder (int64_t label) const |
double | GetPerimeterOnBorderRatio (int64_t label) const |
double | GetPhysicalSize (int64_t label) const |
std::vector< double > | GetPrincipalAxes (int64_t label) const |
std::vector< double > | GetPrincipalMoments (int64_t label) const |
std::vector< unsigned int > | GetRegion (int64_t label) const |
double | GetRoundness (int64_t label) const |
bool | HasLabel (int64_t label) |
LabelShapeStatisticsImageFilter () | |
Self & | SetBackgroundValue (double BackgroundValue) |
Self & | SetComputeFeretDiameter (bool ComputeFeretDiameter) |
Self & | SetComputeOrientedBoundingBox (bool ComputeOrientedBoundingBox) |
Self & | SetComputePerimeter (bool ComputePerimeter) |
std::string | ToString () const |
virtual | ~LabelShapeStatisticsImageFilter () |
Public Member Functions inherited from itk::simple::ImageFilter< 1 > | |
ImageFilter () | |
virtual | ~ImageFilter ()=0 |
Public Member Functions inherited from itk::simple::ProcessObject | |
virtual void | Abort () |
virtual int | AddCommand (itk::simple::EventEnum event, itk::simple::Command &cmd) |
Add a Command Object to observer the event. More... | |
virtual float | GetProgress () const |
An Active Measurement of the progress of execution. More... | |
virtual bool | HasCommand (itk::simple::EventEnum event) const |
Query of this object has any registered commands for event. More... | |
ProcessObject () | |
virtual void | RemoveAllCommands () |
Remove all registered commands. More... | |
virtual | ~ProcessObject () |
virtual void | DebugOn () |
virtual void | DebugOff () |
virtual bool | GetDebug () const |
virtual void | SetDebug (bool debugFlag) |
virtual void | SetNumberOfThreads (unsigned int n) |
virtual unsigned int | GetNumberOfThreads () const |
Private Types | |
typedef void(Self::* | MemberFunctionType) (const Image &image1) |
Private Member Functions | |
template<class TImageType > | |
void | ExecuteInternal (const Image &image1) |
Friends | |
struct | detail::MemberFunctionAddressor< MemberFunctionType > |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::simple::ProcessObject | |
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... | |
Protected Member Functions inherited from itk::simple::ProcessObject | |
virtual unsigned long | AddITKObserver (const itk::EventObject &, itk::Command *) |
virtual itk::ProcessObject * | GetActiveProcess () |
virtual void | OnActiveProcessDelete () |
virtual void | onCommandDelete (const itk::simple::Command *cmd) SITK_NOEXCEPT |
virtual void | PreUpdate (itk::ProcessObject *p) |
virtual void | RemoveITKObserver (EventCommand &e) |
Protected Member Functions inherited from itk::simple::NonCopyable | |
NonCopyable () | |
Static Protected Member Functions inherited from itk::simple::ImageFilter< 1 > | |
static void | FixNonZeroIndex (TImageType *img) |
Static Protected Member Functions inherited from itk::simple::ProcessObject | |
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
Definition at line 50 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Setup for member function dispatching
Definition at line 348 of file sitkLabelShapeStatisticsImageFilter.h.
Define the pixels types supported by this filter
Definition at line 62 of file sitkLabelShapeStatisticsImageFilter.h.
Definition at line 52 of file sitkLabelShapeStatisticsImageFilter.h.
|
virtual |
Destructor
itk::simple::LabelShapeStatisticsImageFilter::LabelShapeStatisticsImageFilter | ( | ) |
Default Constructor that takes no arguments and initializes default parameters
|
inline |
Definition at line 83 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Set the value of ComputeFeretDiameter to true or false respectfully.
Definition at line 82 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Definition at line 111 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Set the value of ComputeOrientedBoundingBox to true or false respectfully.
Definition at line 110 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Definition at line 97 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Set the value of ComputePerimeter to true or false respectfully.
Definition at line 96 of file sitkLabelShapeStatisticsImageFilter.h.
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, | ||
bool | computeOrientedBoundingBox | ||
) |
Execute the filter on the input image with the given parameters
|
private |
|
inline |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
Definition at line 74 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 124 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 142 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 88 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Set/Get whether the oriented bounding box should be computed or not. Default value is false because of potential memory consumption issues with sparse labels.
Definition at line 116 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 102 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 151 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 160 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 169 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 178 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 187 of file sitkLabelShapeStatisticsImageFilter.h.
|
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.
|
inline |
This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
Definition at line 204 of file sitkLabelShapeStatisticsImageFilter.h.
|
inlinevirtual |
Name of this class
Implements itk::simple::ProcessObject.
Definition at line 324 of file sitkLabelShapeStatisticsImageFilter.h.
uint64_t itk::simple::LabelShapeStatisticsImageFilter::GetNumberOfLabels | ( | ) |
Return the number of labels after execution.
|
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 213 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 222 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 312 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 303 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 294 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 321 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 231 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 240 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 249 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 258 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 267 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 276 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 133 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 285 of file sitkLabelShapeStatisticsImageFilter.h.
bool itk::simple::LabelShapeStatisticsImageFilter::HasLabel | ( | int64_t | label | ) |
Does the specified label exist? Can only be called after a call a call to Update().
|
inline |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
Definition at line 69 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 79 of file sitkLabelShapeStatisticsImageFilter.h.
|
inline |
Set/Get whether the oriented bounding box should be computed or not. Default value is false because of potential memory consumption issues with sparse labels.
Definition at line 107 of file sitkLabelShapeStatisticsImageFilter.h.
|
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 93 of file sitkLabelShapeStatisticsImageFilter.h.
|
virtual |
Print ourselves out
Reimplemented from itk::simple::ProcessObject.
|
friend |
Definition at line 352 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 358 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 359 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 361 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 360 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 410 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 381 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 354 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 363 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 367 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 369 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 371 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 373 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 375 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 377 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 379 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 383 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 385 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 405 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 403 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 401 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 407 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 387 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 389 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 391 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 393 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 395 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 397 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 365 of file sitkLabelShapeStatisticsImageFilter.h.
|
private |
Definition at line 399 of file sitkLabelShapeStatisticsImageFilter.h.