|
static IEnumerable< TObject > | SortByName< TObject > (this IEnumerable< TObject > coll, SortDirection direction) |
| Sort a list of named objects by the objects names.
|
|
static IEnumerable< TObject > | SortByName< TObject > (this IEnumerable< TObject > coll) |
| Sort a list of named objects by the objects names.
|
|
static string | AsString< TObject > (this IEnumerable< TObject > coll) |
| Convert a list of named object into a string (useful for example with the Minos classifier's 'Read' method).
|
|
static IEnumerable< TObject > | Threshold< TObject > (this IEnumerable< TObject > coll, double threshold) |
| Remove all values in a collection that lies below a threshold.
|
|
static IEnumerable< TObject > | ThresholdAbsolute< TObject > (this IEnumerable< TObject > coll, double threshold) |
| Remove all values in a collection that lies below a threshold.
|
|
static IEnumerable< TObject > | SortByQuality< TObject > (this IEnumerable< TObject > coll, SortDirection direction) |
| Sort a list of qualified objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortByQuality< TObject > (this IEnumerable< TObject > coll) |
| Sort a list of qualified objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortByAbsoluteQuality< TObject > (this IEnumerable< TObject > coll, SortDirection direction) |
| Sort by absolute quality values (may be useful where qualities can be negative like e.g. with the Edge tool, where in some search modes the sign of the quality indicates the edge polarity).
|
|
static IEnumerable< TObject > | SortByAbsoluteQuality< TObject > (this IEnumerable< TObject > coll) |
| Sort a list of qualified objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortBySize< TObject > (this IEnumerable< TObject > coll, SortDirection direction) |
| Sort a list of sized objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortBySize< TObject > (this IEnumerable< TObject > coll) |
| Sort a list of sized objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortByRotation< TObject > (this IEnumerable< TObject > coll, SortDirection direction) |
| Sort a list of rotated objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortByRotation< TObject > (this IEnumerable< TObject > coll) |
| Sort a list of rotated objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortByScale< TObject > (this IEnumerable< TObject > coll, SortDirection direction) |
| Sort a list of scaled objects by the objects qualities.
|
|
static IEnumerable< TObject > | SortByScale< TObject > (this IEnumerable< TObject > coll) |
| Sort a list of scaled objects by the objects qualities.
|
|
static Point2Dd | GetCenter< TObject > (this IEnumerable< TObject > list) |
| Calculate the center of gravity over a list of position objects.
|
|
static IEnumerable< TObject > | SortByPosition< TObject > (this IEnumerable< TObject > list, IPosition sortDirection) |
| Sort a list of position objects by their sortDirection to a sort direction.
|
|
static IEnumerable< TObject > | SortByDistance< TObject > (this IEnumerable< TObject > coll, IPosition sortCenter, SortDirection sortDirection) |
| Sort a list of positions according to their distances from a sort center.
|
|
static IEnumerable< TObject > | SortByDistance< TObject > (this IEnumerable< TObject > coll, IPosition sortCenter) |
| Sort a list of position according to their distances form a sort center.
|
|
static IEnumerable< TObject > | SeparateByQuality< TObject > (this IEnumerable< TObject > coll, double locality) |
| Makes sure the results in this list are separated by at least locality pixels (measured using the L1 norm). The separations is being carried out as follows:
-
First of all the list of results will be sorted by descending quality
-
Then the list will iterated from the element with the highest quality to the element with the lowest quality
-
For each element being iterated the distance to all subsequent list elements (i.e. those list elements with a lower quality) will be calculated; if it is less than the locality parameter, the element with the lower quality will be eliminated from the list
|
|
static IEnumerable< TObject > | SeparatePositions< TObject > (this IEnumerable< TObject > coll, double locality) |
| Makes sure the results in this list are separated by at least locality pixels (measured using the L1 norm). The separations is being carried out as follows:
-
It is assumed that the list is already sorted "best to worst" according to whatever criterion is suitable
-
Then the list will iterated from the first element to the last element
-
For each element being iterated the distance to all subsequent list elements (i.e. those list elements with a lower quality) will be calculated; if it is less than the locality parameter, the element that came last will be eliminated from the list
|
|
static IEnumerable< TObject > | SeparateBySize< TObject > (this IEnumerable< TObject > coll, double locality) |
| Makes sure the results in this list are separated by at least locality pixels (measured using the L1 norm). The separations is being carried out as follows:
-
First of all the list of results will be sorted by descending quality
-
Then the list will iterated from the element with the highest quality to the element with the lowest quality
-
For each element being iterated the distance to all subsequent list elements (i.e. those list elements with a lower quality) will be calculated; if it is less than the locality parameter, the element with the lower quality will be eliminated from the list
|
|
static double | FindQuantil (this IEnumerable< double > en, double p) |
| Find the Quantile defined by p .
|
|
static double | FindQuantil (this IEnumerable< double > en, double p, SortStatus sorted=SortStatus.Unsorted) |
| Find the Quantile defined by p .
|
|
static void | Swap< TValue > (this TValue[] arr, int index1, int index2) |
| Swap two elements of an array.
|
|
Extension methods for use with generic collections.