Comments (1)
@MengNan-Li I assume you want to retrieve the disparity map. We actually expose the depth (xyz in the camera coordinate) converted from the disparity map. Below is the example code of how the conversion is done. You can simply undo it. We will take note and may include exposing the disparity map in the next release.
depth_image_.setTo(cv::Vec3f(0, 0, 0));
for (int y = 0; y < disparity_result_.rows; ++y) {
for (int x = 0; x < disparity_result_.cols; ++x) {
int16_t disp = disparity_result_.at<int16_t>(y, x);
if (disp <= 0) continue;
// http://docs.opencv.org/3.0.0/d9/d0c/group__calib3d.html#ga1bc1152bd57d63bc524204f21fde6e02
// [XYZW]T=𝚀∗[x y 𝚍𝚒𝚜𝚙𝚊𝚛𝚒𝚝𝚢(x,y) 1]T
cv::Vec4f xyz_homo = duo_calib_param_.Camera.Q *
cv::Vec4f(x, y, static_cast<float>(disp) / 16.f, 1);
cv::Vec3f xyz_C(xyz_homo[0] / xyz_homo[3],
xyz_homo[1] / xyz_homo[3],
xyz_homo[2] / xyz_homo[3]);
depth_image_.at<cv::Vec3f>(y, x) = xyz_C;
}
}
from boteye.
Related Issues (20)
- 急!一切正常,无法初始定位 HOT 13
- Do you have any technical paper about your slam? HOT 2
- boteye app 编译错误 in ubuntu16.04 HOT 6
- 找不到config_environment.sh
- ERROR:unknown command line flag 'pb_save' HOT 5
- app_tracking : Optimize3dPoints takes too long ... HOT 9
- ./app_tracking:can't save map.. HOT 5
- ./guide_receiver:can't receive message..
- ./bin/trajectory_maker:core dump... HOT 26
- Does boteye fit for "F"type path? HOT 1
- Is Boteye fit for Greenhouse Scene? HOT 1
- 求问:app_tracking.cpp的修改 HOT 1
- interesting drift in Z direction HOT 5
- 请问 loop closure detected 的代码在哪 HOT 1
- Question about generated disparity image
- The system cannot endure long distance (about 500m)? HOT 1
- compile error about libgflags.so.2 /usr/lib/x86_64-linux-gnu/libglog.so, conflict with libgflags.so.2.2
- where is the AprilTag5x7.png HOT 1
- 定时曝光?
- Wiki/Build里面的3rdparty_lib_lean无法下载
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boteye.