Sin City Effect

As in the title, I'm looking for an algorithm to create the effect used in the Sin City movie, which selects a color from an image and discolors the rest.

Image

+3
source share
2 answers

In theory, this should be fairly simple:

  • Convert each pixel to HSL .
  • If the hue is in the specified range, increase the saturation by a certain amount.
  • Otherwise, set the saturation to 0.
  • Convert the HSL value back to RGB and move on to the next pixel.

You will need to experiment to find out what wide range of shades you need and how much to increase saturation.

, , . - ( , ), , , " " "". , , , . .

+5

HSV , , .

+1

All Articles