blenderproc.python.modules.postprocessing.OilPaintFilter module

class blenderproc.python.modules.postprocessing.OilPaintFilter.OilPaintFilter(config)[source]

Bases: blenderproc.python.modules.main.Module.Module

Applies the oil paint filter on a single channel image (or more than one channel, where each channel is a replica of the other). This could be desired for corrupting rendered depth maps to appear more realistic. Also trims the redundant channels if they exist.

Configuration:

Parameter Description Type
filter_size Mode filter size, should be an odd number. Default: 5 int
edges_only If true, applies the filter on the edges only. For RGB images, they should be represented in uint8 arrays. Default: True bool
rgb Apply the filter on an RGB image (if the image has 3 channels, they’re assumed to not be replicated). Default: False bool
run(image, key, version)[source]