SimpleITK
1.0.1
|
a convenient class to convert a label image to a label map and valuate the statistics attributes at once More...
#include <sitkLabelIntensityStatisticsImageFilter.h>
Public Types | |
typedef IntegerPixelIDTypeList | PixelIDTypeList |
typedef LabelIntensityStatisticsImageFilter | Self |
Public Types inherited from itk::simple::ImageFilter< 0 > | |
typedef ImageFilter | Self |
Public Types inherited from itk::simple::ProcessObject | |
typedef ProcessObject | Self |
Public Member Functions | |
Self & | ComputeFeretDiameterOff () |
Self & | ComputeFeretDiameterOn () |
Self & | ComputePerimeterOff () |
Self & | ComputePerimeterOn () |
void | Execute (const Image &image, const Image &featureImage) |
void | Execute (const Image &image, const Image &featureImage, double backgroundValue, bool computeFeretDiameter, bool computePerimeter, uint32_t numberOfBins) |
double | GetBackgroundValue () const |
std::vector< unsigned int > | GetBoundingBox (int64_t label) const |
std::vector< double > | GetCenterOfGravity (int64_t label) const |
std::vector< double > | GetCentroid (int64_t label) const |
bool | GetComputeFeretDiameter () 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 |
double | GetKurtosis (int64_t label) const |
std::vector< int64_t > | GetLabels () const |
double | GetMaximum (int64_t label) const |
std::vector< uint32_t > | GetMaximumIndex (int64_t label) const |
double | GetMean (int64_t label) const |
double | GetMedian (int64_t label) const |
double | GetMinimum (int64_t label) const |
std::vector< uint32_t > | GetMinimumIndex (int64_t label) const |
std::string | GetName () const |
uint32_t | GetNumberOfBins () const |
uint64_t | GetNumberOfLabels () |
uint64_t | GetNumberOfPixels (int64_t label) const |
uint64_t | GetNumberOfPixelsOnBorder (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 |
double | GetRoundness (int64_t label) const |
double | GetSkewness (int64_t label) const |
double | GetStandardDeviation (int64_t label) const |
double | GetSum (int64_t label) const |
double | GetVariance (int64_t label) const |
double | GetWeightedElongation (int64_t label) const |
double | GetWeightedFlatness (int64_t label) const |
std::vector< double > | GetWeightedPrincipalAxes (int64_t label) const |
std::vector< double > | GetWeightedPrincipalMoments (int64_t label) const |
double | HasLabel (int64_t label) |
LabelIntensityStatisticsImageFilter () | |
Self & | SetBackgroundValue (double BackgroundValue) |
Self & | SetComputeFeretDiameter (bool ComputeFeretDiameter) |
Self & | SetComputePerimeter (bool ComputePerimeter) |
Self & | SetNumberOfBins (uint32_t NumberOfBins) |
std::string | ToString () const |
~LabelIntensityStatisticsImageFilter () | |
Public Member Functions inherited from itk::simple::ImageFilter< 0 > | |
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 *image, const Image *featureImage) |
Private Member Functions | |
template<class TImageType1 , class TImageType2 > | |
void | DualExecuteInternal (const Image *image, const Image *featureImage) |
Friends | |
struct | detail::DualExecuteInternalAddressor< 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) throw () |
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< 0 > | |
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) |
a convenient class to convert a label image to a label map and valuate the statistics attributes 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 47 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Setup for member function dispatching
Definition at line 439 of file sitkLabelIntensityStatisticsImageFilter.h.
Define the pixels types supported by this filter
Definition at line 59 of file sitkLabelIntensityStatisticsImageFilter.h.
Definition at line 49 of file sitkLabelIntensityStatisticsImageFilter.h.
itk::simple::LabelIntensityStatisticsImageFilter::LabelIntensityStatisticsImageFilter | ( | ) |
Default Constructor that takes no arguments and initializes default parameters
itk::simple::LabelIntensityStatisticsImageFilter::~LabelIntensityStatisticsImageFilter | ( | ) |
Destructor
|
inline |
Definition at line 80 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set the value of ComputeFeretDiameter to true or false respectfully.
Definition at line 79 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Definition at line 94 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set the value of ComputePerimeter to true or false respectfully.
Definition at line 93 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
void itk::simple::LabelIntensityStatisticsImageFilter::Execute | ( | const Image & | image, |
const Image & | featureImage | ||
) |
Execute the filter on the input image
void itk::simple::LabelIntensityStatisticsImageFilter::Execute | ( | const Image & | image, |
const Image & | featureImage, | ||
double | backgroundValue, | ||
bool | computeFeretDiameter, | ||
bool | computePerimeter, | ||
uint32_t | numberOfBins | ||
) |
Execute the filter on the input image with the given parameters
|
inline |
Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
Definition at line 71 of file sitkLabelIntensityStatisticsImageFilter.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 117 of file sitkLabelIntensityStatisticsImageFilter.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 278 of file sitkLabelIntensityStatisticsImageFilter.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 126 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set/Get whether the maximum Feret diameter should be computed or not. The defaut value is false, because of the high computation time required.
Definition at line 85 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set/Get whether the perimeter should be computed or not. The defaut value is false, because of the high computation time required.
Definition at line 99 of file sitkLabelIntensityStatisticsImageFilter.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 135 of file sitkLabelIntensityStatisticsImageFilter.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 144 of file sitkLabelIntensityStatisticsImageFilter.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 153 of file sitkLabelIntensityStatisticsImageFilter.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 162 of file sitkLabelIntensityStatisticsImageFilter.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 171 of file sitkLabelIntensityStatisticsImageFilter.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 180 of file sitkLabelIntensityStatisticsImageFilter.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 287 of file sitkLabelIntensityStatisticsImageFilter.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 188 of file sitkLabelIntensityStatisticsImageFilter.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 296 of file sitkLabelIntensityStatisticsImageFilter.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 305 of file sitkLabelIntensityStatisticsImageFilter.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 314 of file sitkLabelIntensityStatisticsImageFilter.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 323 of file sitkLabelIntensityStatisticsImageFilter.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 332 of file sitkLabelIntensityStatisticsImageFilter.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 341 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inlinevirtual |
Name of this class
Implements itk::simple::ProcessObject.
Definition at line 416 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set/Get the number of bins in the histogram. Note that the histogram is used to compute the median value, and that this option may have an effect on the value of the median.
Definition at line 109 of file sitkLabelIntensityStatisticsImageFilter.h.
uint64_t itk::simple::LabelIntensityStatisticsImageFilter::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 197 of file sitkLabelIntensityStatisticsImageFilter.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 206 of file sitkLabelIntensityStatisticsImageFilter.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 215 of file sitkLabelIntensityStatisticsImageFilter.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 224 of file sitkLabelIntensityStatisticsImageFilter.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 233 of file sitkLabelIntensityStatisticsImageFilter.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 242 of file sitkLabelIntensityStatisticsImageFilter.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 251 of file sitkLabelIntensityStatisticsImageFilter.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 260 of file sitkLabelIntensityStatisticsImageFilter.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 269 of file sitkLabelIntensityStatisticsImageFilter.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 350 of file sitkLabelIntensityStatisticsImageFilter.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 359 of file sitkLabelIntensityStatisticsImageFilter.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 368 of file sitkLabelIntensityStatisticsImageFilter.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 377 of file sitkLabelIntensityStatisticsImageFilter.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 386 of file sitkLabelIntensityStatisticsImageFilter.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 395 of file sitkLabelIntensityStatisticsImageFilter.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 404 of file sitkLabelIntensityStatisticsImageFilter.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 413 of file sitkLabelIntensityStatisticsImageFilter.h.
double itk::simple::LabelIntensityStatisticsImageFilter::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 66 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set/Get whether the maximum Feret diameter should be computed or not. The defaut value is false, because of the high computation time required.
Definition at line 76 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set/Get whether the perimeter should be computed or not. The defaut value is false, because of the high computation time required.
Definition at line 90 of file sitkLabelIntensityStatisticsImageFilter.h.
|
inline |
Set/Get the number of bins in the histogram. Note that the histogram is used to compute the median value, and that this option may have an effect on the value of the median.
Definition at line 104 of file sitkLabelIntensityStatisticsImageFilter.h.
|
virtual |
Print ourselves out
Reimplemented from itk::simple::ProcessObject.
|
friend |
Definition at line 441 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 450 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 451 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 452 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 445 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 524 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 471 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 453 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 455 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 491 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 457 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 459 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 461 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 463 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 465 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 467 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 469 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 493 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 495 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 497 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 499 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 501 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 503 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 505 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 473 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 475 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 477 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 479 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 481 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 483 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 485 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 487 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 489 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 507 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 509 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 511 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 513 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 515 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 517 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 519 of file sitkLabelIntensityStatisticsImageFilter.h.
|
private |
Definition at line 521 of file sitkLabelIntensityStatisticsImageFilter.h.