Companion
object Companion
Collection of in-place sorting and filtering functions found via the Util inner class of ColorBlobLocatorProcessor.
Functions
Link copied to clipboard
fun filterByCriteria(criteria: ColorBlobLocatorProcessor.BlobCriteria, minValue: Double, maxValue: Double, blobs: MutableList<ColourBlob>)
Remove from a mutable list of ColourBlobs those which fail to meet a given criteria.
Link copied to clipboard
fun sortByCriteria(criteria: ColorBlobLocatorProcessor.BlobCriteria, sortOrder: SortOrder, blobs: MutableList<ColourBlob>)
Rearrange a mutable list of ColourBlobs to sort by a criteria.