Class FilterContoursOperation
- java.lang.Object
-
- edu.wpi.grip.core.operations.composite.FilterContoursOperation
-
- All Implemented Interfaces:
Operation
public class FilterContoursOperation extends java.lang.Object implements Operation
AnOperation
that takes in a list of contours and outputs a list of any contours in the input that match all of several criteria. Right now, the user can specify a minimum area, minimum perimeter, and ranges for width and height. This is useful because running a Find Contours on a real-life image typically leads to many small undesirable contours from noise and small objects, as well as contours that do not meet the expected characteristics of the feature we're actually looking for. So, this operation can help narrow them down.
-
-
Constructor Summary
Constructors Constructor Description FilterContoursOperation(InputSocket.Factory inputSocketFactory, OutputSocket.Factory outputSocketFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<InputSocket>
getInputSockets()
java.util.List<OutputSocket>
getOutputSockets()
void
perform()
Performs thisOperation
.
-
-
-
Constructor Detail
-
FilterContoursOperation
@Inject public FilterContoursOperation(InputSocket.Factory inputSocketFactory, OutputSocket.Factory outputSocketFactory)
-
-
Method Detail
-
getInputSockets
public java.util.List<InputSocket> getInputSockets()
- Specified by:
getInputSockets
in interfaceOperation
- Returns:
- A list of sockets for the inputs that the operation expects.
-
getOutputSockets
public java.util.List<OutputSocket> getOutputSockets()
- Specified by:
getOutputSockets
in interfaceOperation
- Returns:
- A list of sockets for the outputs that the operation produces.
-
-