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

SortIndices16

Sort indices to a block of data

SYNOPSIS

#include "dip_sort.h"

dip_Error dip_SortIndices16 ( data, indices, size, algorithm, dataType )

FUNCTION

Sorts a list of (16 bit) indices rather than the data itself using the algorithm specified by algorithm.

ARGUMENTS

Data typeNameDescription
void *dataData
dip_sint16 *indicesIndices
dip_intsizeSize
dip_SortalgorithmSort algorithm
dip_DataTypedataTypeData type. See DIPlib's data types

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

SEE ALSO

General information about sorting

DistributionSort, InsertionSort, QuickSort, Sort, ImageSort, SortIndices, ImageSortIndices

DIPlib on-line documentation | Function reference | Global function index