Go to the documentation of this file.
12 std::string out =
"[";
13 for(
auto row : matrix) {
15 for(
auto val : row) out +=
to_string(val) +
", ";
16 out = out.substr(0, out.size() - 2) +
"]\n";
18 out = out.substr(0, out.size() - 1) +
"]\n\n";
22 int main(
int argc,
char** argv) {
30 std::vector<std::vector<float>> intrinsics;
33 cout <<
"Intrinsics from defaultIntrinsics function:" << endl;
37 cout <<
"Width: " << width << endl;
38 cout <<
"Height: " << height << endl;
45 cout <<
"Intrinsics from getCameraIntrinsics function full resolution:" << endl;
49 cout <<
"Intrinsics from getCameraIntrinsics function 1280 x 720:" << endl;
53 cout <<
"Intrinsics from getCameraIntrinsics function 720 x 450:" << endl;
57 cout <<
"Intrinsics from getCameraIntrinsics function 600 x 1280:" << endl;
61 std::vector<std::vector<float>> extrinsics;
63 cout <<
"Extrinsics from left->right test:" << endl;
67 cout <<
"Extrinsics from right->left test:" << endl;
71 cout <<
"Extrinsics from right->rgb test:" << endl;
75 cout <<
"Extrinsics from rgb->right test:" << endl;
79 cout <<
"Extrinsics from left->rgb test:" << endl;
std::vector< std::vector< float > > getCameraExtrinsics(CameraBoardSocket srcCamera, CameraBoardSocket dstCamera, bool useSpecTranslation=false) const
std::tuple< std::vector< std::vector< float > >, int, int > getDefaultIntrinsics(CameraBoardSocket cameraId) const
std::vector< std::vector< float > > getCameraIntrinsics(CameraBoardSocket cameraId, int resizeWidth=-1, int resizeHeight=-1, Point2f topLeftPixelId=Point2f(), Point2f bottomRightPixelId=Point2f(), bool keepAspectRatio=true) const
CalibrationHandler readCalibration()
float getBaselineDistance(CameraBoardSocket cam1=CameraBoardSocket::CAM_C, CameraBoardSocket cam2=CameraBoardSocket::CAM_B, bool useSpecTranslation=true) const
int main(int argc, char **argv)
std::string to_string(std::exception const &e)
float getFov(CameraBoardSocket cameraId, bool useSpec=true) const
void printMatrix(std::vector< std::vector< float >> matrix)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:18