#include <vnl_index_sort.h>
Classes | |
| struct | sort_index_compare_functor |
| Implementation class - Do Not Use. More... | |
Public Types | |
| enum | DirectionType { ByRow, ByColumn } |
| matrix sort along rows or columns?. More... | |
| typedef vnl_vector< TValue > | SortVectorType |
| typedefs for vector sorting. More... | |
| typedef vnl_vector< TIndex > | SortVectorIndexType |
| typedef vnl_matrix< TValue > | SortMatrixType |
| typedefs for matrix sorting. More... | |
| typedef vnl_matrix< TIndex > | SortMatrixIndexType |
Public Member Functions | |
| void | vector_sort (const SortVectorType &values, SortVectorIndexType &indices) |
| just sort indices. More... | |
| void | vector_sort (const SortVectorType &values, SortVectorType &sorted_values, SortVectorIndexType &indices) |
| sort indices and values. More... | |
| void | vector_sort_in_place (SortVectorType &values, SortVectorIndexType &indices) |
| sort indices, return sorted values in place. More... | |
| void | matrix_sort (DirectionType direction, const SortMatrixType &values, SortMatrixType &sorted_values, SortMatrixIndexType &indices) |
| matrix sort. More... | |
Public Attributes | |
| enum vnl_index_sort::DirectionType | Direction |
Private Member Functions | |
| void | sortIndices (const SortVectorType &v, SortVectorIndexType &s) |
| sort the indices of a vector. More... | |
| void | reindexValues (const SortVectorType &values, const SortVectorIndexType &indices, SortVectorType &sorted_values) |
| reorder values from sorted indices. More... | |
| template<class T > | |
| void | getVector (const vnl_matrix< T > &fromMat, DirectionType direction, int whichVect, vnl_vector< T > &toVect) |
| get specified vector from matrix depending on direction. More... | |
| template<class T > | |
| void | putVector (const vnl_vector< T > &fromVect, DirectionType direction, int whichVect, vnl_matrix< T > &toMat) |
| put specified vector to matrix depending on direction. More... | |
Definition at line 18 of file vnl_index_sort.h.
| typedef vnl_matrix<TIndex> vnl_index_sort< TValue, TIndex >::SortMatrixIndexType |
Definition at line 28 of file vnl_index_sort.h.
| typedef vnl_matrix<TValue> vnl_index_sort< TValue, TIndex >::SortMatrixType |
typedefs for matrix sorting.
Definition at line 27 of file vnl_index_sort.h.
| typedef vnl_vector<TIndex> vnl_index_sort< TValue, TIndex >::SortVectorIndexType |
Definition at line 24 of file vnl_index_sort.h.
| typedef vnl_vector<TValue> vnl_index_sort< TValue, TIndex >::SortVectorType |
typedefs for vector sorting.
Definition at line 23 of file vnl_index_sort.h.
| enum vnl_index_sort::DirectionType |
matrix sort along rows or columns?.
| Enumerator | |
|---|---|
| ByRow | |
| ByColumn | |
Definition at line 31 of file vnl_index_sort.h.
|
inlineprivate |
get specified vector from matrix depending on direction.
Definition at line 128 of file vnl_index_sort.h.
|
inline |
|
inlineprivate |
put specified vector to matrix depending on direction.
Definition at line 150 of file vnl_index_sort.h.
|
inlineprivate |
reorder values from sorted indices.
Definition at line 116 of file vnl_index_sort.h.
|
inlineprivate |
|
inline |
just sort indices.
Definition at line 34 of file vnl_index_sort.h.
|
inline |
sort indices and values.
Definition at line 42 of file vnl_index_sort.h.
|
inline |
sort indices, return sorted values in place.
Definition at line 54 of file vnl_index_sort.h.
| enum vnl_index_sort::DirectionType vnl_index_sort< TValue, TIndex >::Direction |
1.8.15