Blender
V5.0
source
blender
compositor
algorithms
COM_algorithm_morphological_distance.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::compositor
{
11
12
/* Dilate or erode the given input using a morphological operator with a circular structuring
13
* element of radius equivalent to the absolute value of the given distance parameter. A positive
14
* distance corresponds to dilate operator, while a negative distance corresponds to an erode
15
* operator. */
16
void
morphological_distance
(
Context
&context,
17
const
Result
&
input
,
18
Result
&
output
,
19
const
int
distance
);
20
21
}
// namespace blender::compositor
COM_context.hh
COM_result.hh
blender::compositor::Context
Definition
COM_context.hh:44
blender::compositor::Result
Definition
COM_result.hh:100
input
#define input
Definition
gpu_shader_compat_cxx.hh:170
output
#define output
Definition
gpu_shader_compat_cxx.hh:171
distance
float distance(VecOp< float, D >, VecOp< float, D >) RET
blender::compositor
Definition
BKE_node.hh:77
blender::compositor::morphological_distance
void morphological_distance(Context &context, const Result &input, Result &output, const int distance)
Definition
morphological_distance.cc:99
Generated on
for Blender by
doxygen
1.16.1