API reference

CompositeMaskMax Class

Extends Mask2D
A mask that combines multiple other masks and returns the maximum value of all.

Methods

Check ( c )
Not used on this mask.
Signature
override bool Check(Candidate c)
Parameters
c: Candidate  The candidate
Returns
override bool  true
SampleMask ( c )
This method applies the mask to the given candidate.
It first generates an affine transformation based on the provided parameters, and then applies this transformation to the local position of the candidate. If there are no mask layers, it returns 0. Otherwise, it returns negative infinity.
Signature
override float SampleMask(Candidate c)
Parameters
c: Candidate  The candidate to apply the mask to.
Returns
override float  The mask value for the given candidate.