[ITK] How to sort an itk::Statistics::Subsample in reverse order?
Jan Ehrhardt
ehrhardt at imi.uni-luebeck.de
Tue Apr 26 08:04:28 EDT 2016
Hi folks,
I want to do something similar to
// Sort the subsample with heap sort:
itk::Statistics::Algorithm::HeapSort< SubsampleType >( subsample, 3, 0,
subsample->Size() );
SubsampleType::Iterator iter = subsample->End();
while( iter != subsample->Begin() )
{
// Do fancy stuff
// decrease the subsample iterator
--iter;
}
This is not possible because operator--() is not defined. Further I
havn't an option to reverse the order of sorting.
How can I solve this?
Best,
Jan
More information about the Community
mailing list