Closed knsjoon closed 2 years ago
Hello, thank you for still using Record3D :).
The reason you get this error is that the confidence maps hold uint8
pixels, but you are attempting to load them as float32
. Using this to load the confidece should fix the error:
confidence_img = np.frombuffer(decompressed_bytes, dtype=np.uint8)
Please see https://github.com/marek-simonik/record3d/issues/7#issuecomment-736573410 for more details.
I'm closing this issue as I believe my comment will fix the error, but feel free to comment / reopen this issue if you would encounter any further problems.
How to get the confidence map while streaming? I am trying to run an algorithm on point clouds where I construct it from the image, depth and instrinsic information. However the one I construct from the exported data files is vastly better than the one from the data in the stream. I am suspecting this because I am not using confidence maps in the stream. How to get that? Or is there any other thing to be considered while streaming
Hello Marek! Thank you for a great app (once again! --> I emailed you before for other issues). I wonder how to process the depth confidence map that is outputted on .r3d files?
I tried to process it the same way as processing the depth map but I get the following error:
ValueError: cannot reshape array of size 12288 into shape (256,192)
Thank you in advance!