Class FilterContoursOperation

  • All Implemented Interfaces:
    Operation

    public class FilterContoursOperation
    extends java.lang.Object
    implements Operation
    An Operation 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.
    • Method Detail

      • getInputSockets

        public java.util.List<InputSocket> getInputSockets()
        Specified by:
        getInputSockets in interface Operation
        Returns:
        A list of sockets for the inputs that the operation expects.
      • getOutputSockets

        public java.util.List<OutputSocket> getOutputSockets()
        Specified by:
        getOutputSockets in interface Operation
        Returns:
        A list of sockets for the outputs that the operation produces.
      • perform

        public void perform()
        Description copied from interface: Operation
        Performs this Operation.
        Specified by:
        perform in interface Operation