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
Thanks for your perfect project.
The question is when I use following script to read ht5 file, the rbg image I get is a whole white image. How to recover the raw data from the hdf5 mat?
''''''''''
local rgbImage = file:read('/rgb'):all():transpose(2,3):float()
local depthImage = file:read('/depth'):all():transpose(1,2)
file:close()
image.save('0001_rgb.jpg',rgbImage)
--print(rgbImage:size())
image.save('0001_depth.jpg',depthImage)
''''''''''
Thanks for your answer.
The text was updated successfully, but these errors were encountered:
I think you should avoid converting rgb images (uint8) to float. If you really need to do that, scale the color to between [0,1] after the float-type conversion. Please let me know if that works.
Thanks for your perfect project.
The question is when I use following script to read ht5 file, the rbg image I get is a whole white image. How to recover the raw data from the hdf5 mat?
''''''''''
local rgbImage = file:read('/rgb'):all():transpose(2,3):float()
local depthImage = file:read('/depth'):all():transpose(1,2)
file:close()
image.save('0001_rgb.jpg',rgbImage)
--print(rgbImage:size())
image.save('0001_depth.jpg',depthImage)
''''''''''
Thanks for your answer.
The text was updated successfully, but these errors were encountered: