An index for seed positions. More...
Public Member Functions | |
| IndexType () | |
| Construct an invalid index. | |
| IndexType (GridPtr grid, std::vector< int > const &v0, std::vector< int > const &v1, std::size_t seedPositions, std::size_t seedsPerPosition) | |
| Construct an index. | |
| IndexType & | operator++ () |
| Increase the index by one, effectively generating the next seed position. | |
| bool | done () |
| Check if there aren't any more seed positions. | |
| JobType | job () |
| Create a job from this index. | |
Private Attributes | |
| GridPtr | m_grid |
| a pointer to the grid | |
| bool | m_done |
| true, iff there are no more seeds | |
| boost::array< std::size_t, 4 > | m_pos |
| the position in the seed space | |
| boost::array< std::size_t, 4 > | m_min |
| the minimum position in the seed space | |
| boost::array< std::size_t, 4 > | m_max |
| the maximum position in the seed space | |
| double | m_offset |
| the relative (to the size of a voxel) distance between seeds | |
Friends | |
| class | ::WThreadedTrackingFunctionTest |
An index for seed positions.
Definition at line 228 of file WThreadedTrackingFunction.h.
| wtracking::WThreadedTrackingFunction::IndexType::IndexType | ( | ) |
Construct an invalid index.
Definition at line 274 of file WThreadedTrackingFunction.cpp.
| wtracking::WThreadedTrackingFunction::IndexType::IndexType | ( | GridPtr | grid, | |
| std::vector< int > const & | v0, | |||
| std::vector< int > const & | v1, | |||
| std::size_t | seedPositions, | |||
| std::size_t | seedsPerPosition | |||
| ) |
Construct an index.
| grid | The grid. | |
| v0 | A vector of starting voxel indices for every direction. | |
| v1 | A vector of target voxel indices for every direction. | |
| seedPositions | The number of seed positions in every direction per voxel. | |
| seedsPerPosition | The number of fibers startet from every seed position. |
Definition at line 280 of file WThreadedTrackingFunction.cpp.
| bool wtracking::WThreadedTrackingFunction::IndexType::done | ( | ) |
Check if there aren't any more seed positions.
Definition at line 346 of file WThreadedTrackingFunction.cpp.
References m_done.
Referenced by WThreadedTrackingFunctionTest::testIndexIncrement().
| WThreadedTrackingFunction::JobType wtracking::WThreadedTrackingFunction::IndexType::job | ( | ) |
Create a job from this index.
Definition at line 351 of file WThreadedTrackingFunction.cpp.
References m_grid, m_offset, and m_pos.
Referenced by WThreadedTrackingFunctionTest::testIndexToJob().
| WThreadedTrackingFunction::IndexType & wtracking::WThreadedTrackingFunction::IndexType::operator++ | ( | ) |
bool wtracking::WThreadedTrackingFunction::IndexType::m_done [private] |
true, iff there are no more seeds
Definition at line 276 of file WThreadedTrackingFunction.h.
Referenced by done(), operator++(), and WThreadedTrackingFunctionTest::testIndexInitialization().
a pointer to the grid
Definition at line 273 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), and job().
boost::array< std::size_t, 4 > wtracking::WThreadedTrackingFunction::IndexType::m_max [private] |
the maximum position in the seed space
Definition at line 285 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), operator++(), and WThreadedTrackingFunctionTest::testIndexInitialization().
boost::array< std::size_t, 4 > wtracking::WThreadedTrackingFunction::IndexType::m_min [private] |
the minimum position in the seed space
Definition at line 282 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), operator++(), and WThreadedTrackingFunctionTest::testIndexInitialization().
double wtracking::WThreadedTrackingFunction::IndexType::m_offset [private] |
the relative (to the size of a voxel) distance between seeds
Definition at line 288 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), job(), and WThreadedTrackingFunctionTest::testIndexInitialization().
boost::array< std::size_t, 4 > wtracking::WThreadedTrackingFunction::IndexType::m_pos [private] |
the position in the seed space
Definition at line 279 of file WThreadedTrackingFunction.h.
Referenced by IndexType(), job(), operator++(), and WThreadedTrackingFunctionTest::testIndexInitialization().
1.7.1