Class CVPipe<I,O,P>

java.lang.Object
org.photonvision.vision.pipe.CVPipe<I,O,P>
Type Parameters:
I - Input type for the pipe
O - Output type for the pipe
P - Parameters type for the pipe
Direct Known Subclasses:
AprilTagDetectionPipe, AprilTagPoseEstimatorPipe, ArucoDetectionPipe, ArucoPoseEstimatorPipe, CalculateFPSPipe, Calibrate3dPipe, Collect2dTargetsPipe, CornerDetectionPipe, FilterContoursPipe, FilterObjectDetectionsPipe, FilterShapesPipe, FindBoardCornersPipe, FindCirclesPipe, FindContoursPipe, FindPolygonPipe, GPUAcceleratedHSVPipe, GrayscalePipe, GroupContoursPipe, HSVPipe, MultiTargetPNPPipe, MutatingPipe, ObjectDetectionPipe, SolvePNPPipe, SortContoursPipe, SpeckleRejectPipe

public abstract class CVPipe<I,O,P> extends Object
Defines a pipe. A pipe is a single step in a pipeline. This class is to be extended, never used on its own.
  • Field Details

  • Constructor Details

    • CVPipe

      public CVPipe()
  • Method Details

    • setParams

      public void setParams(P params)
    • getParams

      public P getParams()
    • process

      protected abstract O process(I in)
      Runs the process for the pipe.
      Parameters:
      in - Input for pipe processing.
      Returns:
      Result of processing.
    • run

      public CVPipe.CVPipeResult<O> run(I in)
      Parameters:
      in - Input for pipe processing.
      Returns:
      Result of processing.