Package org.hyperonline.hyperlib.vision
Interface VisionGUIPipeline
-
- All Superinterfaces:
edu.wpi.first.vision.VisionPipeline
- All Known Implementing Classes:
CrosshairsPipeline
,FindTargetsPipeline
,HeightIndicatorPipeline
public interface VisionGUIPipeline extends edu.wpi.first.vision.VisionPipeline
A pipeline which has separate methods for processing an input image and writing its overlays to an output image. This allows multiple pipelines to read from the same camera image, and composite all their outputs at the end.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
process(org.opencv.core.Mat mat)
Read an input image.void
writeOutput(org.opencv.core.Mat mat)
Draw indicators onto the output image.
-
-
-
Method Detail
-
process
void process(org.opencv.core.Mat mat)
Read an input image. This method should extract any useful information from the input mat, and update any shared variables that the robot thread may access. It should NOT modify the image. Instead, save any information you want to print, and use it in the next call to writeOutput.- Specified by:
process
in interfaceedu.wpi.first.vision.VisionPipeline
- Parameters:
mat
- image to process
-
writeOutput
void writeOutput(org.opencv.core.Mat mat)
Draw indicators onto the output image.- Parameters:
mat
- image to write the indicators on
-
-