final case class BlobVoices(in: GE, width: GE, height: GE, numBlobs: GE, bounds: GE, numVertices: GE, vertices: GE, minWidth: GE = 0, minHeight: GE = 0, thresh: GE = 0.0, voices: GE = 4) extends SingleOut with Product with Serializable
A UGen that translates blob detection output into a continuous
signal suitable for writing as a managed-voices matrix.
The output will be two dimensional matrices with the original
number of columns replaced by voices * 10 number of columns.
(that is, for input matrix [a][b], the output will be [a][voices*10]).
For each voice, the following ten values will be emitted
per column (we give interpretation in 'time' and 'altitude' if
the input matrix is [time][altitude], and [y][x] if the input
matrix is an image):
- 0 - id (zero for empty or no blob, greater than zero for voice id)
- 1 - blobLeft (start altitude)
- 2 - blobTop (start time)
- 3 - blobWidth (altitude span)
- 4 - blobHeight (time span)
- 5 - boxLeft (start altitude of slice)
- 6 - boxWidth (altitude span of slice)
- 7 - sliceMean
- 8 - sliceStdDev
- 9 - sliceCenter
Where id is zero for unused voice, and greater than zero for a valid blob.
During the existence of one blob, the blob boundary fields (1 to 4) remain
constant, and the box and slice values vary over time. Blobs are always
guaranteed to coherently occupying the same voice.
- in
the input matrices
- width
the number of columns in the input matrices. read as one element per matrix.
- height
the number of rows in the input matrices. read as one element per matrix.
- numBlobs
the
numBlobsoutput from the blob detection- bounds
the
boundsoutput from the blob detection- numVertices
the
numVerticesoutput from the blob detection- vertices
the
verticesoutput from the blob detection- minWidth
the minimum blob width to be considered. read as one element per matrix.
- minHeight
the minimum blob height to be considered. read as one element per matrix.
- thresh
threshold in
infor elements to be counted in the slices- voices
the maximum number of parallel voices. read at initialization time only.
- Alphabetic
- By Inheritance
- BlobVoices
- Serializable
- Serializable
- SingleOut
- SomeOut
- Lazy
- GE
- UGenSource
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BlobVoices(in: GE, width: GE, height: GE, numBlobs: GE, bounds: GE, numVertices: GE, vertices: GE, minWidth: GE = 0, minHeight: GE = 0, thresh: GE = 0.0, voices: GE = 4)
- in
the input matrices
- width
the number of columns in the input matrices. read as one element per matrix.
- height
the number of rows in the input matrices. read as one element per matrix.
- numBlobs
the
numBlobsoutput from the blob detection- bounds
the
boundsoutput from the blob detection- numVertices
the
numVerticesoutput from the blob detection- vertices
the
verticesoutput from the blob detection- minWidth
the minimum blob width to be considered. read as one element per matrix.
- minHeight
the minimum blob height to be considered. read as one element per matrix.
- thresh
threshold in
infor elements to be counted in the slices- voices
the maximum number of parallel voices. read at initialization time only.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bounds: GE
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val height: GE
- val in: GE
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
makeStream(args: Vec[StreamIn])(implicit b: Builder): StreamOut
- Definition Classes
- BlobVoices → UGenSource
-
def
makeUGen(args: Vec[UGenIn])(implicit b: Builder): UGenInLike
- Attributes
- protected
- Definition Classes
- BlobVoices → UGenSource
-
def
makeUGens(implicit b: Builder): UGenInLike
- Attributes
- protected
- Definition Classes
- BlobVoices → Expander
- val minHeight: GE
- val minWidth: GE
-
final
def
name: String
- Definition Classes
- UGenSource
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val numBlobs: GE
- val numVertices: GE
-
final
def
rewrap(args: IndexedSeq[UGenInLike], exp: Int)(implicit b: Builder): UGenInLike
- Attributes
- protected
- Definition Classes
- UGenSource
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val thresh: GE
- val vertices: GE
- val voices: GE
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val width: GE