Blender
V5.0
source
blender
compositor
algorithms
COM_algorithm_morphological_distance_feather.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 "
DNA_scene_types.h
"
8
9
#include "
COM_context.hh
"
10
#include "
COM_result.hh
"
11
12
namespace
blender::compositor
{
13
14
/* Dilate or erode the given input using a morphological inverse distance operation evaluated at
15
* the given falloff. The radius of the structuring element is equivalent to the absolute value of
16
* the given distance parameter. A positive distance corresponds to a dilate operator, while a
17
* negative distance corresponds to an erode operator. See the implementation and shader for more
18
* information. */
19
void
morphological_distance_feather
(
Context
&context,
20
const
Result
&
input
,
21
Result
&
output
,
22
const
int
distance
,
23
const
int
falloff_type =
PROP_SMOOTH
);
24
25
}
// namespace blender::compositor
COM_context.hh
COM_result.hh
DNA_scene_types.h
PROP_SMOOTH
@ PROP_SMOOTH
Definition
DNA_scene_types.h:2629
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_feather
void morphological_distance_feather(Context &context, const Result &input, Result &output, const int distance, const int falloff_type=PROP_SMOOTH)
Definition
morphological_distance_feather.cc:298
Generated on
for Blender by
doxygen
1.16.1