Rescale - Serabe/rinzelight GitHub Wiki

Disclaimer

There are only two things you need to know about rescale in
rinzelight:

  1. It is a macro.
  2. It creates a multisample-lookup-table and applies it. It doesn’t use RescaleOp.

Theory

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.

⚠️ **GitHub.com Fallback** ⚠️