ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::NodeOfPermutation Class Reference

#include <itkImageRandomNonRepeatingConstIteratorWithIndex.h>

Detailed Description

A node to be used when computing permutations.

The itk::ImageRandomNonRepeatingIterator works by creating a random permutation of the image pixels and then using that to control the order in which it accesses them. The classes NodeOfPermutation and RandomPermutation are used to support that. RandomPermutation is basically container which holds NodeOfPermutation objects. The node class overloads the < operator, which allows the sort algorithm from the STL to be used on it.

Definition at line 40 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

Public Member Functions

 NodeOfPermutation ()=default
 
bool operator< (const NodeOfPermutation &b) const
 

Public Attributes

SizeValueType m_Index { 0 }
 
SizeValueType m_Priority { 0 }
 
double m_Value { 0.0 }
 

Constructor & Destructor Documentation

◆ NodeOfPermutation()

itk::NodeOfPermutation::NodeOfPermutation ( )
default

Referenced by operator<().

Member Function Documentation

◆ operator<()

bool itk::NodeOfPermutation::operator< ( const NodeOfPermutation & b) const
inline

Member Data Documentation

◆ m_Index

SizeValueType itk::NodeOfPermutation::m_Index { 0 }

◆ m_Priority

SizeValueType itk::NodeOfPermutation::m_Priority { 0 }

Definition at line 43 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

Referenced by operator<().

◆ m_Value

double itk::NodeOfPermutation::m_Value { 0.0 }

Definition at line 45 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

Referenced by operator<().


The documentation for this class was generated from the following file: