Blender
V4.3
source
blender
compositor
realtime_compositor
algorithms
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
10
namespace
blender::realtime_compositor
{
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. */
14
enum class
SummedAreaTableOperation
:
uint8_t
{
15
Identity
,
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. */
24
void
summed_area_table
(Context &context,
25
Result &input,
26
Result &output,
27
SummedAreaTableOperation
operation =
SummedAreaTableOperation::Identity
);
28
29
}
// namespace blender::realtime_compositor
COM_context.hh
COM_result.hh
blender::realtime_compositor
Definition
BKE_node.hh:80
blender::realtime_compositor::summed_area_table
void summed_area_table(Context &context, Result &input, Result &output, SummedAreaTableOperation operation=SummedAreaTableOperation::Identity)
Definition
summed_area_table.cc:202
blender::realtime_compositor::SummedAreaTableOperation
SummedAreaTableOperation
Definition
COM_algorithm_summed_area_table.hh:14
blender::realtime_compositor::SummedAreaTableOperation::Identity
@ Identity
blender::realtime_compositor::SummedAreaTableOperation::Square
@ Square
uint8_t
unsigned char uint8_t
Definition
stdint.h:78
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0