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
Namespace: Stemmer.Cvb.Collections.Generic
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public static IEnumerable<TObject> SeparateBySize<TObject>( this IEnumerable<TObject> coll, double locality ) where TObject : IPosition, ISized
Parameters
- coll
- Type: System.Collections.GenericIEnumerableTObject
collection to which to apply the separation - locality
- Type: SystemDouble
minimum distance between two results (must be > 0)
Type Parameters
- TObject
- type of the result comparable objects to be separated
Return Value
Type: IEnumerableTObject[Missing <returns> documentation for "M:Stemmer.Cvb.Collections.Generic.CollectionExtensions.SeparateBySize``1(System.Collections.Generic.IEnumerable{``0},System.Double)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also