我的应用程序接收可以具有bayer_rggb8
编码的相机图像。我需要将这些图像转换为bgr8
//吗rgb8
?mono8
或者 Aruco 可以检测拜耳编码cv::Mat
的标记吗?
我正在使用 Aruco 3.0.10。下面是我正在使用的功能。
/**Detects the markers in the image passed
*
* If you provide information about the camera parameters and the size of the marker, then, the extrinsics of
* the markers are detected
*
* @param input input color image
* @param detectedMarkers output vector with the markers detected
* @param camParams Camera parameters
* @param markerSizeMeters size of the marker sides expressed in meters
* @param setYPerperdicular If set the Y axis will be perpendicular to the surface. Otherwise, it will be the
* Z axis
*/
void detect(const cv::Mat& input, std::vector<Marker>& detectedMarkers, CameraParameters camParams,
float markerSizeMeters = -1, bool setYPerperdicular = false);
我试图只给它bayer_rggb8
编码的图像,这似乎有效(它检测标记)。但我想知道这是否应该工作,或者我是否对我的测试图像很幸运。