Sorter.
More...
#include <gdcmSorter.h>
Sorter.
General class to do sorting using a custom function You simply need to provide a function of type: Sorter::SortFunction
- Warning
- implementation details. For now there is no cache mechanism. Which means that every time you call Sort, all files specified as input parameter are read
- See also
- Scanner
- Examples
- SortImage.cxx, SortImage2.cs, and VolumeSorter.cxx.
◆ SelectionMap
◆ SortFunction
| typedef bool(* gdcm::Sorter::SortFunction) (DataSet const &, DataSet const &) |
Set the sort function which compares one dataset to the other.
◆ Sorter()
◆ ~Sorter()
| virtual gdcm::Sorter::~Sorter |
( |
| ) |
|
|
virtual |
◆ AddSelect()
| bool gdcm::Sorter::AddSelect |
( |
Tag const & |
tag, |
|
|
const char * |
value |
|
) |
| |
◆ GetFilenames()
| const std::vector< std::string > & gdcm::Sorter::GetFilenames |
( |
| ) |
const |
|
inline |
◆ Print()
| void gdcm::Sorter::Print |
( |
std::ostream & |
os | ) |
const |
◆ SetSortFunction()
◆ SetTagsToRead()
| void gdcm::Sorter::SetTagsToRead |
( |
std::set< Tag > const & |
tags | ) |
|
Specify a set of tags to be read in during the sort procedure. By default this set is empty, in which case the entire image, including pixel data, is read in.
◆ Sort()
| virtual bool gdcm::Sorter::Sort |
( |
std::vector< std::string > const & |
filenames | ) |
|
|
virtual |
◆ StableSort()
| virtual bool gdcm::Sorter::StableSort |
( |
std::vector< std::string > const & |
filenames | ) |
|
|
virtual |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
_os, |
|
|
const Sorter & |
s |
|
) |
| |
|
friend |
◆ Filenames
| std::vector<std::string> gdcm::Sorter::Filenames |
|
protected |
◆ Selection
| std::map<Tag,std::string> gdcm::Sorter::Selection |
|
protected |
◆ SortFunc
◆ TagsToRead
| std::set<Tag> gdcm::Sorter::TagsToRead |
|
protected |
The documentation for this class was generated from the following file: