mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Also update copyright to include "and other WPILib contributors" and clarify license referral language to not be restricted to FIRST teams.
30 lines
688 B
C++
30 lines
688 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#pragma once
|
|
|
|
namespace cv {
|
|
class Mat;
|
|
} // namespace cv
|
|
|
|
namespace frc {
|
|
|
|
/**
|
|
* A vision pipeline is responsible for running a group of OpenCV algorithms to
|
|
* extract data from an image.
|
|
*
|
|
* @see VisionRunner
|
|
*/
|
|
class VisionPipeline {
|
|
public:
|
|
virtual ~VisionPipeline() = default;
|
|
|
|
/**
|
|
* Processes the image input and sets the result objects. Implementations
|
|
* should make these objects accessible.
|
|
*/
|
|
virtual void Process(cv::Mat& mat) = 0;
|
|
};
|
|
} // namespace frc
|