You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The distance for an Object that is 80cm away is p_z=7.6m.
I think i've made a mistake reading the disparity Image from file, because my Image contains very small values. More like uint8 than uint16. And so dik is small and p_z is following by that too big.
I have tried to change dtype='>u2' when reading the .pfm but then i cant shape the Image to the correct size because i get twice as much values (614400 instead of 307200)?
Anybody knows where I have made a mistake or succeeded with getting the conversion from pixel to world done?
Thanks for your help
derEskimo
The text was updated successfully, but these errors were encountered:
The Scan3dCoordinateScale is only needed when converting the 16bit image (as in the GenICam image buffer) to a floating point disparity value in pixels.
Since you are using the cli tool gc_stream which already saves the disparity image in float format (*.pfm), you alreay have the floating point value in pixels and the scaling should not be applied again.
Hi,
i am using a rc_visard 65m and this library to stream disparity images via GenICam.
I read the Image from the .pfm-File (e.g. image_946691111.740987800_Disparity_1_0.zip) with this snippet (abducted from here: https://lmb.informatik.uni-freiburg.de/resources/datasets/IO.py):
And get this Image:
![DisparityImage](https://user-images.githubusercontent.com/45262936/74430734-c6a74f00-4e5d-11ea-8d48-3b74f5d7b828.png)
I got the cam parameters via
gc_info serial_no?Scan3dControl
and they are:But when I want to calculate the pixel [240, 320] in real world coordinates like here:
https://doc.rc-visard.com/latest/en/gigevision.html#image-stream-conversions
The distance for an Object that is
80cm
away isp_z=7.6m
.I think i've made a mistake reading the disparity Image from file, because my Image contains very small values. More like uint8 than uint16. And so
dik
is small andp_z
is following by that too big.I have tried to change
dtype='>u2'
when reading the .pfm but then i cant shape the Image to the correct size because i get twice as much values (614400 instead of 307200)?Anybody knows where I have made a mistake or succeeded with getting the conversion from pixel to world done?
Thanks for your help
derEskimo
The text was updated successfully, but these errors were encountered: