Module photon_rs::monochrome

source ·
Expand description

Monochrome-related effects and greyscaling/duotoning.

Functions

Convert an image to grayscale by setting a pixel’s 3 RGB values to the Blue channel’s value.
Uses a max. decomposition algorithm to convert an image to greyscale.
Uses a min. decomposition algorithm to convert an image to greyscale.
Desaturate an image by getting the min/max of each pixel’s RGB values.
Convert an image to grayscale by setting a pixel’s 3 RGB values to the Green channel’s value.
Convert an image to grayscale using the conventional averaging algorithm.
Convert an image to grayscale with a human corrected factor, to account for human vision.
Employ only a limited number of gray shades in an image.
Apply a monochrome effect of a certain colour.
Convert an image to grayscale by setting a pixel’s 3 RGB values to the Red channel’s value.
Convert an image to sepia.
Convert an image to grayscale by setting a pixel’s 3 RGB values to a chosen channel’s value.
Threshold an image using a standard thresholding algorithm.
Convert an image to grayscale by setting a pixel’s 3 RGB values to the Blue channel’s value.
Uses a max. decomposition algorithm to convert an image to greyscale.
Uses a min. decomposition algorithm to convert an image to greyscale.
Desaturate an image by getting the min/max of each pixel’s RGB values.
Convert an image to grayscale by setting a pixel’s 3 RGB values to the Green channel’s value.
Convert an image to grayscale using the conventional averaging algorithm.
Convert an image to grayscale with a human corrected factor, to account for human vision.
Employ only a limited number of gray shades in an image.
Apply a monochrome effect of a certain colour.
Convert an image to grayscale by setting a pixel’s 3 RGB values to the Red channel’s value.
Convert an image to sepia.
Convert an image to grayscale by setting a pixel’s 3 RGB values to a chosen channel’s value.
Threshold an image using a standard thresholding algorithm.