Blobs2D

final case
class Blobs2D(in: GE, width: GE, height: GE, thresh: GE, pad: GE) extends MultiOut

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 Params
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
trait SomeOut[IndexedSeq[StreamOut]]
trait Lazy
trait GE
trait UGenSource[UGenInLike, IndexedSeq[StreamOut]]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def bounds: GE

Inherited methods

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