CPC G06T 7/90 (2017.01) [G06T 1/20 (2013.01); G06T 2207/10024 (2013.01); G06T 2207/20208 (2013.01)] | 20 Claims |
1. A method, comprising:
receiving input image data that includes values associated with a first channel and not a second channel;
receiving an offset value that indicates a range; and
generating values for the second channel, wherein generating the values for the second channel includes:
generating intermediate values for the second channel based on the values associated with the first channel;
clipping each of a first subset of the intermediate values that has a magnitude outside the range indicated by the offset value to zero to generate a clipped first subset of the intermediate values;
adding the offset value to each of a second subset of the intermediate values that has a magnitude within the range to generate a clipped second subset of the intermediate values; and
applying a correction function to the intermediate values including the clipped first and second subsets of the intermediate values based on the offset value to determine the values for the second channel.
|