Blender V5.0
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
12namespace 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. */
20 const Result &input,
22 const int distance,
23 const int falloff_type = PROP_SMOOTH);
24
25} // namespace blender::compositor
@ PROP_SMOOTH
#define input
#define output
float distance(VecOp< float, D >, VecOp< float, D >) RET
void morphological_distance_feather(Context &context, const Result &input, Result &output, const int distance, const int falloff_type=PROP_SMOOTH)