public class AestheticodeDetector extends Object implements Function<Contour,List<Aestheticode>>, Predicate<Contour>
Constructor and Description |
---|
AestheticodeDetector()
Constructs with the min and max children to the default (both are 5) and
max childless children to 0
|
AestheticodeDetector(int minChildren,
int maxChildren,
int maxChildless)
Construct with the given parameters
|
Modifier and Type | Method and Description |
---|---|
List<Aestheticode> |
apply(Contour in)
Apply the function to the input argument and return the result.
|
boolean |
test(Contour in)
Tests whether a specific object passes some criteria.
|
public AestheticodeDetector()
public AestheticodeDetector(int minChildren, int maxChildren, int maxChildless)
minChildren
- the minimum number of children allowed in a rootmaxChildren
- the maximum number of children allowed in a rootmaxChildless
- the maximum number of childless childrenpublic List<Aestheticode> apply(Contour in)
Function
apply
in interface Function<Contour,List<Aestheticode>>
in
- the input object