Hi,
I am looking for a library - or some other way - of applying Instagram-like filters to an image. Specifically, I would like to apply image filters that make an image look artistically retro or vintage. Any suggestions for how to achieve this (via library or other means)?
Answers
https://processing.org/reference/filter_.html https://processing.org/reference/tint_.html
(Very belatedly adding a bit more information here.)
Processing and photo filtering:
For stylization, use
filter()
orPImage.filter()
arguments such as THRESHOLD, INVERT, POSTERIZE, and BLUR etc.: https://processing.org/reference/filter_.html https://processing.org/reference/PImage_filter_.htmlFor color, use
tint()
: https://processing.org/reference/tint_.htmlFor color separating the R G B channels, use
red()
green()
blue()
-- although you can again usetint()
, see: https://forum.processing.org/two/discussion/18999/channel-shifting-videoFor specifying how to process the pixels of an image (e.g. sharpening, pointillism), see the Images and Pixels Tutorial: https://processing.org/tutorials/pixels/
For advanced effects (e.g. edge detection, or pixelation), use a shader -- see the PShader Tutorial: https://processing.org/tutorials/pshader/
For multiple different filter effects, see this sketch by @cameyo: https://forum.processing.org/two/discussion/13525/convolution
For an example of working out a specific filter, see this recent sketch by @grumo implementing a duotone process: https://forum.processing.org/two/discussion/19476/monotone-duotone-image-filter