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
Hi @sandeshk1 I think you are asking how @asbilgi achieved getting the same distance values from both get_distance and by the alternate method of multiplying the pixel value by the depth unit scale?
Edit: I see that you have been replied to about this question at your own case at #8150
Issue Description
I want to obtain the depth of some point in depth frame. But get_distance() and pixel value *get_depth_scale isn't same. Here is sample code:
` int main(){
and result here:
Scale: 0.001 Pixel value: 246 distance: 3.549
Scale: 0.001 Pixel value: 234 distance: 3.513
Scale: 0.001 Pixel value: 234 distance: 3.489
Scale: 0.001 Pixel value: 40 distance: 3.549
Scale: 0.001 Pixel value: 234 distance: 3.525
Scale: 0.001 Pixel value: 66 distance: 3.562
Scale: 0.001 Pixel value: 185 distance: 3.574
The text was updated successfully, but these errors were encountered: