![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class representing one row of the Region Adjacency Graph (RAG). More...
#include <mdsAdjacencyGraph.h>
Public Types | |
| enum | EReturnCode { VALID = 0, CHANGED = 1 << 0, DIRTY = 1 << 1 } |
| Status returned from the set() method. More... | |
| typedef std::map< tSize, T > | tRow |
| Container of neighbouring regions. | |
Public Member Functions | |
| void | clear () |
| Removes all neighbours. | |
| void | findMinMax () |
| Finds maximum and minimum value. | |
| T | get (tSize i, const T &DefaultValue) const |
| Returns value of the subscripted element. | |
| T | getMax (tSize &i, const T &DefaultValue) |
| Returns value and index of the maximum. | |
| T | getMin (tSize &i, const T &DefaultValue) |
| Returns value and index of the minimum. | |
| int | insert (const SRegionInfo &Info) |
| Inserts all neighbours in a given row. | |
| int | remove (tSize i) |
| Removes a given neighbouring region. | |
| int | set (tSize i, const T &Value) |
| Adds a new neighbouring region. | |
| SRegionInfo () | |
| Default constructor. | |
Public Attributes | |
| int | m_Flags |
| Internal flags. | |
| tElement | m_Max |
| Maximum and minimum. | |
| tSize | m_MaxIndex |
| Indexes of the regions. | |
| tElement | m_Min |
| tSize | m_MinIndex |
| tRow | m_Row |
| All neighbouring regions. | |
Class representing one row of the Region Adjacency Graph (RAG).
| typedef std::map<tSize,T> mds::img::CAdjacencyGraph< T >::SRegionInfo::tRow |
Container of neighbouring regions.
| enum mds::img::CAdjacencyGraph::SRegionInfo::EReturnCode |
Status returned from the set() method.
| VALID |
Both values are still valid. |
| CHANGED |
Minimum/maximum has been decreased/increased. |
| DIRTY |
Minimum/maximum is invalid, the method findMinMax() must be called. |
| CAdjacencyGraph::SRegionInfo::SRegionInfo | ( | ) |
Default constructor.
| void CAdjacencyGraph::SRegionInfo::clear | ( | ) |
Removes all neighbours.
| void CAdjacencyGraph::SRegionInfo::findMinMax | ( | ) |
Finds maximum and minimum value.
| T CAdjacencyGraph::SRegionInfo::get | ( | tSize | i, |
| const T & | DefaultValue | ||
| ) | const |
Returns value of the subscripted element.
| T CAdjacencyGraph::SRegionInfo::getMax | ( | tSize & | i, |
| const T & | DefaultValue | ||
| ) |
Returns value and index of the maximum.
| T CAdjacencyGraph::SRegionInfo::getMin | ( | tSize & | i, |
| const T & | DefaultValue | ||
| ) |
Returns value and index of the minimum.
| int CAdjacencyGraph::SRegionInfo::insert | ( | const SRegionInfo & | Info | ) |
Inserts all neighbours in a given row.
| int CAdjacencyGraph::SRegionInfo::remove | ( | tSize | i | ) |
Removes a given neighbouring region.
| int CAdjacencyGraph::SRegionInfo::set | ( | tSize | i, |
| const T & | Value | ||
| ) |
Adds a new neighbouring region.
| int mds::img::CAdjacencyGraph< T >::SRegionInfo::m_Flags |
Internal flags.
| tElement mds::img::CAdjacencyGraph< T >::SRegionInfo::m_Max |
Maximum and minimum.
| tSize mds::img::CAdjacencyGraph< T >::SRegionInfo::m_MaxIndex |
Indexes of the regions.
| tElement mds::img::CAdjacencyGraph< T >::SRegionInfo::m_Min |
| tSize mds::img::CAdjacencyGraph< T >::SRegionInfo::m_MinIndex |
| tRow mds::img::CAdjacencyGraph< T >::SRegionInfo::m_Row |
All neighbouring regions.
1.7.6.1