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
Dear Professor:
Hello! I use the command "imgcmd delivery_area_1l.png -out delivery_area_1l.pfm" to convert the png format to pfm format, but the converted result fails to submit to ETH3D. The system thinks this pfm result is an invalid input.
The text was updated successfully, but these errors were encountered:
I am not a professor, I just have a PhD, but you can call me Heiko.
It should work. I can just guess that the disparities are out of range? PNG uses integer values, but disparities are usually given with sub-pixel accuracy. So usually, the sub-pixel disparity is multiplied with e.g. 16 and then stored as integer. PFM stores values as float. If you stored it in this way in the PNG, then you need to divide all values by e.g. 16. This can be done like this:
Dear Dr.Heiko:
Thank you for answering my question, I tried changing the command to the form you suggested, but it still reported an error. With your reminder, I tried printing out the values before and after the conversion and found that my values were normal before the format conversion, but after executing the command, the values of the generated image became Nan (but looked normal from the monitor), I was using Python to call the cmd command, is it related to this?
Dear Professor:
Hello! I use the command "imgcmd delivery_area_1l.png -out delivery_area_1l.pfm" to convert the png format to pfm format, but the converted result fails to submit to ETH3D. The system thinks this pfm result is an invalid input.
The text was updated successfully, but these errors were encountered: