Blobs2D

final case class Blobs2D(in: D, width: I, height: I, thresh: D, pad: I) extends MultiOut[Any]

A blob detection UGen. It is based on the meta-balls algorithm by Julien Gachadoat (http://www.v3ga.net/processing/BlobDetection/).

Currently, we output four channels:

  • 0 - numBlobs - flushes for each window one element with the number of blobs detected
  • 1 - bounds - quadruplets of xMin, xMax, yMin, yMax - for each blob
  • 2 - numVertices - the number of vertices (contour coordinates) for each blob
  • 3 - vertices - tuples of x and y for the vertices of each blob
Value parameters:
height

the height of the image

in

the image(s) to analyse

pad

size of "border" to put around input matrices. If greater than zero, a border of that size is created internally, filled with the threshold value

thresh

the threshold for blob detection between zero and one

width

the width of the image

Companion:
object
trait Serializable
trait MultiOut[Any]
trait Lazy[Any]
trait GE[Any]
trait UGenSource[UGenInLike[Any], IndexedSeq[StreamOut]]
trait Expander[UGenInLike[Any]]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def bounds: D
def numBlobs: I
def vertices: D

Inherited methods

final def name: String
Inherited from:
UGenSource
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product