Comments (9)
Hey santonatos,
- You should use sl::MEM_CPU to download the disparity measure to CPU, since you are not using the GPU I assume.
- I assume you know what a disparity map is. The image consists of a single channel, unlike an RGB image with 3 color channels, and the data are floats. Again in the image, they would be uchars.
- You can use OpenCV to display float images. There is a function called slMat2cvMat included in the OpenCV example of StereoLabs. You can get a cv::Mat from it and can display it with cv::imshow. You will need to scale the image values between 0 and 1, although. So divide it by 50 or something.
from zed-sdk.
hi waschmachine, I am aware of what you are describing, but I am not sure if you can display a disparity map this way, i think it does not work with a depth map for sure (the depth map uses an openGL viewer, the depth image uses what you are describing)
I will try it, but I am not sure if it will work
from zed-sdk.
I can confirm it is working flawlessly with OpenCV and the sl2Mat2cvMat function for the depth measure. I've scaled it by 1/20 for visualization purposes, because maximum depth range is 20m. It works even for float32 images.
from zed-sdk.
ok i ll try it. but i care about the disparity not the depth. but the description has them with similar characteristics so that shouldnt be an issue
from zed-sdk.
Hi,
You can do the same with disparity but you need to take care in the "scaling" that disparity is a negative value.
/OB/
from zed-sdk.
Do you both mean that I would have to go through all the values in the Mat and 'scale them'? How would I scale the values?
from zed-sdk.
Come on. Google it.
cv::Mat newImg = oldDepthImg * 0.05f;
from zed-sdk.
lol just that? interesting, This must be a property of the Mat that I am not aware of
from zed-sdk.
Property of cv::Mat, not sl::Mat ( we did not implement it yet).
Therefore just "cast" a sl::Mat into a cv::Mat and then use all the properties of a cv::Mat.
from zed-sdk.
Related Issues (20)
- Memory use increases when frequently open & close cameras HOT 3
- ROI seems to have no effect on exposure digital-gain and analog-gain settings HOT 5
- Can't run streaming_render.py HOT 4
- getting segmentation fault when Importing torch or Ultralystics. HOT 1
- Positional and Spatial Mapping Python HOT 1
- setRegionOfInterest() not working with object or body tracking? SDK 4.0 HOT 1
- Multi Spatial Mapping HOT 2
- File object support in the Python API (fsspec)
- Body tracking is not working HOT 6
- Calibration tool doesn't work with ZED X MINI/ZED X HOT 7
- Fusion "get position" does not work HOT 1
- [SDK 4.0.8 ] ai model download and optimization fails HOT 1
- CMake of Download HOT 1
- Image Buffer Tearing HOT 1
- ZED Depth Viewer .exe does not open HOT 3
- Jetson Orin NX - USB Camera not detected HOT 3
- ZED360 - Multi Camera Calibration API Reference HOT 1
- Depth_Viewer does not plot images HOT 1
- OGL view in fused camera HOT 2
- ZED not detected by ZED_SDK but able to recieve camera feed HOT 1
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 zed-sdk.