Skip to content

Differential Version of bitmap.convert(mi.Bitmap.PixelFormat.RGB, mi.Struct.Type.UInt8) for mi.TensorXf #659

Answered by njroussel
shallowtoil asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shallowtoil

The Bitmap class, indeed, doesn't have any sort of gradient tracking capabilities. Also, I don't believe we provide any built-in functions to do the tonemapping/sRGB ramp differentiably.
The snippet you mention from the tutorial can technically serve that purpose. Again, a 2.2 gamma correction is just an approximation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shallowtoil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #658 on April 13, 2023 18:54.