Blender V4.3
COM_algorithm_summed_area_table.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "COM_context.hh"
8#include "COM_result.hh"
9
11
12/* Possible operations to apply on pixels before computing the summed area table. The Square
13 * operation, for instance, can be useful to compute image variance from sum of squares. */
16 Square,
17};
18
19/* Computes a summed area table from the given input and write the table to the given output. A
20 * summed are table is an image where each pixel contains the sum of all pixels in the areas down
21 * and to its left toward the zero index, including the pixel itself. This table is particularly
22 * useful to accelerate filters that requires averaging large rectangular areas of the input, like
23 * a box filter. */
24void summed_area_table(Context &context,
25 Result &input,
26 Result &output,
28
29} // namespace blender::realtime_compositor
void summed_area_table(Context &context, Result &input, Result &output, SummedAreaTableOperation operation=SummedAreaTableOperation::Identity)
unsigned char uint8_t
Definition stdint.h:78