Skip to content
Snippets Groups Projects
Commit a69b630d authored by Fabian Reister's avatar Fabian Reister
Browse files

crop robot from image component: fixing field of view

parent 90fac65f
No related branches found
No related tags found
No related merge requests found
......@@ -105,11 +105,13 @@ namespace armarx
::visionx::MonocularCalibration calibrationLeft = stereoCalibration.calibrationLeft;
width = calibrationLeft.cameraParam.width;
height = calibrationLeft.cameraParam.height;
fov = 2.0 * std::atan(width / (2.0 * calibrationLeft.cameraParam.focalLength[0]));
fov = 2.0 * std::atan(width / (2.0 * calibrationLeft.cameraParam.focalLength[1]));
//fov = M_PI / 4;
ARMARX_INFO << "Using calibration from image provider " << providerName << ". Field of view is: " << fov ;
ARMARX_INFO << "Iamge size: (" << width << ", " << height << ").";
/*
StereoResultImageProviderPtr stereoResultImageProvider = StereoResultImageProviderPtr::dynamicCast(resultImageProvider);
stereoResultImageProvider->setStereoCalibration(stereoCalibration, calibrationProvider->getImagesAreUndistorted(), calibrationProvider->getReferenceFrame());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment