DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

ImageSortIndices

Sort indices to image data

SYNOPSIS

#include "dip_sort.h"

dip_Error dip_ImageSortIndices ( in, indices, algorithm, flags )

FUNCTION

Sorts a list of indices rather than the data itself using the algorithm specified by algorithm. Unless the DIP_ISI_USE_INDICES, the indices image will be initialised with one index for each pixel in the image.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput
dip_ImageindicesIndices
dip_SortalgorithmSort algorithm
dipf_ImageSortIndicesflagsFlags

The sortType parameter is one of:

NameDescription
DIP_SORT_DEFAULTDefault sort algorithm
DIP_SORT_QUICK_SORTQuick sort
DIP_SORT_DISTRIBUTION_SORTDistribution sort
DIP_SORT_INSERTION_SORTInsertion sort

The dipf_ImageSortIndices enumeration consists of the following flags:

NameDescription
DIP_ISI_USE_INDICESUse the indices as given in the indices image

SEE ALSO

General information about sorting

DistributionSort, InsertionSort, QuickSort, Sort, ImageSort, SortIndices, SortIndices16