O'Reilly logo

Learning Image Processing with OpenCV by Gloria Bueno García, Oscar Deniz Suarez, José Luis Espinosa Aranda, Jesus Salido Tercero, Ismael Serrano Gracia, Noelia Vállez Enano

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Non-photorealistic rendering

As part of the photo module, four functions are available that transform an input image in a way that produces a non-realistic but still artistic output. The functions are very easy to use and a nice example is included with OpenCV (npr_demo). For illustrative purposes, here we show you a table that allows you to grasp the effect of each function. Take a look at the following fruits.jpg input image, included with OpenCV:

Non-photorealistic rendering

The input reference image

The effects are:

Function

Effect

edgePreservingFilter

Smoothing is a handy and frequently used filter. This function performs smoothing while preserving object edge details. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required