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
Currently handling of black levels for the image requires the black level be carrying around and passed to multiple functions, far downstream of the dng to texture conversion.
Option 1: have image_url_to_texture return a float32 texture with the black level already subtracted.
Pro: simplified pipeline, less textures, no need for extra conversion, much simpler handling of position-dependent black levels (e.g. row/column dependent)
Con: Certain functions will need to be re-worked since they work on the pixel intensities with the black level included. The increased memory usage of returning float32 textures can be offset by creating them much closer to when they're needed, and doing so one at a time.
The adobe DNG sdk (and likely the open source one) has functionality for querying black level for individual sub-pixels, making that portion of the implementation easier.
Option 2: carry around more information about black level
Pro: easier to modify into existing code
Con: Will increase downstream code complexity, will likely increase memory usage (especially for spatially varying black level), and will increase computation time.
Further consideration, I am not sure the black level is currently being handled correctly. prepare_texture, and the code it was based on, ensures that values are above zero after the black level has been re-added:
Currently handling of black levels for the image requires the black level be carrying around and passed to multiple functions, far downstream of the dng to texture conversion.
Option 1: have
image_url_to_texture
return a float32 texture with the black level already subtracted.The adobe DNG sdk (and likely the open source one) has functionality for querying black level for individual sub-pixels, making that portion of the implementation easier.
Option 2: carry around more information about black level
Original public discussion started in #38 (comment)
The text was updated successfully, but these errors were encountered: