24 N_(
"The kernel is a float and will be convolved with all input channels")},
29 N_(
"The kernel is a color and each channel of the kernel will be convolved with each "
30 "respective channel in the input")},
31 {0,
nullptr, 0,
nullptr,
nullptr},
36 b.use_custom_socket_order();
37 b.allow_any_socket_order();
40 .structure_type(StructureType::Dynamic)
41 .align_with_previous();
47 b.add_input<
decl::Float>(
"Kernel"_ustr,
"Float Kernel"_ustr)
52 b.add_input<
decl::Color>(
"Kernel"_ustr,
"Color Kernel"_ustr)
59 .
description(
"Normalizes the kernel such that it integrates to one");
98 this->
get_input(
"Kernel Data Type").get_single_value_default<MenuValue>().value);
#define NODE_CLASS_OP_FILTER
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define BLI_assert_unreachable()
NodeOperation(Context &context, const bNode &node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
bool is_single_value() const
T get_single_value_default() const
StructureType structure_type
NodeOperation(Context &context, const bNode &node)
const Result & get_kernel_input()
bool get_normalize_kernel()
KernelDataType get_kernel_data_type()
void node_register_type(bNodeType &ntype)
ColorSceneLinear4f< eAlpha::Premultiplied > Color
void convolve(Context &context, const Result &input, const Result &kernel, Result &output, const bool normalize_kernel)
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static const EnumPropertyItem kernel_data_type_items[]
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
NodeDeclareFunction declare