|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Manages lookup of ImageStatisticsContainer nodes in a DataStorage. More...
#include <mitkImageStatisticsContainerManager.h>
Static Public Member Functions | |
| static mitk::ImageStatisticsContainer::Pointer | GetImageStatistics (const mitk::DataStorage *dataStorage, const mitk::BaseData *image, const mitk::BaseData *mask=nullptr, bool ignoreZeroVoxel=false, unsigned int histogramNBins=100, bool onlyIfUpToDate=true, bool noWIP=true) |
| Find and return the ImageStatisticsContainer for the given image and mask. More... | |
| static mitk::DataNode::Pointer | GetImageStatisticsNode (const mitk::DataStorage *dataStorage, const mitk::BaseData *image, const mitk::BaseData *mask=nullptr, bool ignoreZeroVoxel=false, unsigned int histogramNBins=100, bool onlyIfUpToDate=true, bool noWIP=true) |
| Find and return the DataNode containing the ImageStatisticsContainer. More... | |
| static mitk::NodePredicateBase::ConstPointer | GetStatisticsPredicateForSources (const mitk::BaseData *image, const mitk::BaseData *mask=nullptr) |
| Create a predicate to search for statistics containers of the given sources. More... | |
Manages lookup of ImageStatisticsContainer nodes in a DataStorage.
This utility class provides static methods to find or retrieve ImageStatisticsContainer instances that were previously computed for a given image and optional mask, and stored as DataNode objects in a DataStorage.
Definition at line 53 of file mitkImageStatisticsContainerManager.h.
|
static |
Find and return the ImageStatisticsContainer for the given image and mask.
Searches the data storage for an ImageStatisticsContainer that was computed on the specified image (and optionally mask). If multiple containers match, the one with the newest modification time is returned.
| [in] | dataStorage | Pointer to the DataStorage to search. |
| [in] | image | Pointer to the source image. |
| [in] | mask | Pointer to the mask (can be nullptr if unmasked statistics are desired). |
| [in] | ignoreZeroVoxel | Whether the desired statistics exclude zero voxels. |
| [in] | histogramNBins | Number of histogram bins the desired statistics should have. |
| [in] | onlyIfUpToDate | If true, only returns statistics that are newer than image and mask. |
| [in] | noWIP | If true, only returns completed results (not work-in-progress placeholders). |
|
static |
Find and return the DataNode containing the ImageStatisticsContainer.
Same search logic as GetImageStatistics(), but returns the DataNode wrapper.
| [in] | dataStorage | Pointer to the DataStorage to search. |
| [in] | image | Pointer to the source image. |
| [in] | mask | Pointer to the mask (can be nullptr). |
| [in] | ignoreZeroVoxel | Whether zero voxels were ignored. |
| [in] | histogramNBins | Number of histogram bins. |
| [in] | onlyIfUpToDate | Only return up-to-date results. |
| [in] | noWIP | Only return completed results. |
|
static |
Create a predicate to search for statistics containers of the given sources.
| [in] | image | Pointer to the source image. |
| [in] | mask | Pointer to the mask (can be nullptr). |