|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Randomly sub-samples voxels from a label image based on an acceptance rate. More...
#include <itkLabelSampler.h>


Public Types | |
| typedef LabelSampler | Self |
| typedef ImageToImageFilter< TImage, TImage > | Superclass |
| typedef SmartPointer< Self > | Pointer |
| typedef std::map< int, int > | outmap |
Public Member Functions | |
| virtual const char * | GetClassName () const |
| virtual void | SetAcceptRate (double _arg) |
| virtual void | SetLabel (int _arg) |
| virtual outmap | GetLabelVoxelCountMap () |
| virtual int | GetNumberOfSampledVoxels () |
| int | GetLabelVoxelCount (int label) |
| Get the voxel count for a specific label value. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| LabelSampler () | |
| ~LabelSampler () | |
| virtual void | GenerateData () |
Randomly sub-samples voxels from a label image based on an acceptance rate.
For each voxel matching the specified label (or all non-zero labels if label is -1), the voxel is kept with probability equal to AcceptRate. The filter also counts the number of voxels per label and the total number of sampled voxels.
| TImage | The input/output image type. |
Definition at line 30 of file itkLabelSampler.h.
| typedef std::map<int,int> itk::LabelSampler< TImage >::outmap |
Definition at line 37 of file itkLabelSampler.h.
| typedef SmartPointer< Self > itk::LabelSampler< TImage >::Pointer |
Definition at line 36 of file itkLabelSampler.h.
| typedef LabelSampler itk::LabelSampler< TImage >::Self |
Standard class typedefs.
Definition at line 34 of file itkLabelSampler.h.
| typedef ImageToImageFilter< TImage, TImage > itk::LabelSampler< TImage >::Superclass |
Definition at line 35 of file itkLabelSampler.h.
|
inlineprotected |
Definition at line 61 of file itkLabelSampler.h.
|
inlineprotected |
Definition at line 70 of file itkLabelSampler.h.
|
protectedvirtual |
Does the real work.
|
virtual |
Run-time type information (and related methods).
|
inline |
Get the voxel count for a specific label value.
| label | The label value to query. |
Definition at line 53 of file itkLabelSampler.h.
|
virtual |
|
virtual |
|
static |
Method for creation through the object factory.
|
virtual |
|
virtual |