Skip to content

Instantly share code, notes, and snippets.

@jedypod
jedypod / SummedAreaTable.cpp
Last active October 19, 2020 20:10
Perform a spatially varying box blur based on an input map. Box blur only for the moment. Uses a summed area table.
/* Create a summed area table in one direction, based on an input image.
In order to create a 2-dimensional summed area table,
you need two copies of the node, the 2nd with col=true
Currently there are issues with precision for higher resolution images...
*/
kernel SummedAreaTable : ImageComputationKernel<eComponentWise> {
Image<eRead, eAccessRandom, eEdgeConstant> src;
Image<eReadWrite, eAccessRandom> dst;
This file has been truncated, but you can view the full file.