HDRI Community
Picturenaut >> Developer Zone >> Tile sizes.

Message started by davidb on 09/11/10 at 12:39:27

Title: Tile sizes.
Post by davidb on 09/11/10 at 12:39:27
I have finally got around to rewriting my bilateral/noise reduction filter so that it works on tiles rather than complete images. 

The motivation was to reduce the number of cache misses when working on large pictures, but one side effect is that I am left with some code that could almost be squeezed into the picturenaut plugin framework.

Unfortunately I need some behaviour from pn that it isn't obvious how to get from the sdk examples.

Basically what I need to do is have input and output tiles of different sizes.

For the sake of argument I have a 1024x1024 image.  It may be reasonable want to split this into 16 256x256 tiles.

If I am applying a filter with radius r then I need the input tile to be larger.  (256+(2*r))*(256+(2*r)) = the output tile area + a border of width r.

The same thing applies for most local tone mapping algorithms, but it's not obvious how to achieve it.

Any ideas?

HDRI Community » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2018. All Rights Reserved.