Rescale - Serabe/rinzelight GitHub Wiki
There are only two things you need to know about rescale in
rinzelight:
- It is a macro.
- It creates a multisample-lookup-table and applies it. It doesn’t use RescaleOp.
Rescale accepts three parameters (and a few rendering hints if you want to): and image, a factor and an offset . Then, it applies (+ offset (* factor pixel_value))
to each pixel value. Factor and offset can be vectors containing different values for each channel.