WIP: Rename Dilate/Erode to Dilate Erode #104999

Closed
Daniel Salazar wants to merge 4 commits from zanqdo:dilate-erode-rename into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
9 changed files with 15 additions and 15 deletions

View File

@ -1334,7 +1334,7 @@ float BKE_maskrasterize_handle_sample(MaskRasterHandle *mr_handle, const float x
switch (layer->falloff) {
case PROP_SMOOTH:
/* ease - gives less hard lines for dilate/erode feather */
/* ease - gives less hard lines for dilate erode feather */
value_layer = (3.0f * value_layer * value_layer -
2.0f * value_layer * value_layer * value_layer);
break;

View File

@ -12,7 +12,7 @@ namespace blender::compositor {
* \ingroup Node
*/
class DilateErodeNode : public Node {
/** only used for blurring alpha, since the dilate/erode node doesn't have this. */
/** only used for blurring alpha, since the dilate erode node doesn't have this. */
NodeBlurData alpha_blur_;
public:

View File

@ -296,7 +296,7 @@ void KeyingNode::convert_to_operations(NodeConverter &converter,
postprocessed_matte = setup_post_blur(converter, postprocessed_matte, keying_data->blur_post);
}
/* matte dilate/erode */
/* matte dilate erode */
if (keying_data->dilate_distance != 0) {
postprocessed_matte = setup_dilate_erode(
converter, postprocessed_matte, keying_data->dilate_distance);

View File

@ -112,7 +112,7 @@ float *BlurBaseOperation::make_dist_fac_inverse(float rad, int size, int falloff
/* keep in sync with rna_enum_proportional_falloff_curve_only_items */
switch (falloff) {
case PROP_SMOOTH:
/* ease - gives less hard lines for dilate/erode feather */
/* ease - gives less hard lines for dilate erode feather */
val = (3.0f * val * val - 2.0f * val * val * val);
break;
case PROP_SPHERE:

View File

@ -578,7 +578,7 @@ void *DilateStepOperation::initialize_tile_data(rcti *rect)
"dilate erode buf");
/* The following is based on the van Herk/Gil-Werman algorithm for morphology operations.
* first pass, horizontal dilate/erode. */
* first pass, horizontal dilate erode. */
for (y = ymin; y < ymax; y++) {
for (x = 0; x < bwidth + 5 * half_window; x++) {
buf[x] = -FLT_MAX;
@ -603,7 +603,7 @@ void *DilateStepOperation::initialize_tile_data(rcti *rect)
}
}
/* Second pass, vertical dilate/erode. */
/* Second pass, vertical dilate erode. */
for (x = 0; x < bwidth; x++) {
for (y = 0; y < bheight + 5 * half_window; y++) {
buf[y] = -FLT_MAX;
@ -719,7 +719,7 @@ static void step_update_memory_buffer(MemoryBuffer *output,
"dilate erode buf");
/* The following is based on the van Herk/Gil-Werman algorithm for morphology operations. */
/* First pass, horizontal dilate/erode. */
/* First pass, horizontal dilate erode. */
for (int y = ymin; y < ymax; y++) {
for (int x = 0; x < bwidth + 5 * half_window; x++) {
buf[x] = compare_min_value;
@ -744,7 +744,7 @@ static void step_update_memory_buffer(MemoryBuffer *output,
}
}
/* Second pass, vertical dilate/erode. */
/* Second pass, vertical dilate erode. */
for (int x = 0; x < bwidth; x++) {
for (int y = 0; y < bheight + 5 * half_window; y++) {
buf[y] = compare_min_value;
@ -828,7 +828,7 @@ void *ErodeStepOperation::initialize_tile_data(rcti *rect)
"dilate erode buf");
/* The following is based on the van Herk/Gil-Werman algorithm for morphology operations.
* first pass, horizontal dilate/erode */
* first pass, horizontal dilate erode */
for (y = ymin; y < ymax; y++) {
for (x = 0; x < bwidth + 5 * half_window; x++) {
buf[x] = FLT_MAX;
@ -853,7 +853,7 @@ void *ErodeStepOperation::initialize_tile_data(rcti *rect)
}
}
/* Second pass, vertical dilate/erode. */
/* Second pass, vertical dilate erode. */
for (x = 0; x < bwidth; x++) {
for (y = 0; y < bheight + 5 * half_window; y++) {
buf[y] = FLT_MAX;

View File

@ -30,7 +30,7 @@ class GaussianAlphaBlurBaseOperation : public BlurBaseOperation {
Span<MemoryBuffer *> inputs) final;
/**
* Set subtract for Dilate/Erode functionality
* Set subtract for Dilate Erode functionality
*/
void set_subtract(bool subtract)
{

View File

@ -8871,7 +8871,7 @@ static void def_cmp_keying(StructRNA *srna)
prop = RNA_def_property(srna, "dilate_distance", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "dilate_distance");
RNA_def_property_range(prop, -100, 100);
RNA_def_property_ui_text(prop, "Dilate/Erode", "Matte dilate/erode side");
RNA_def_property_ui_text(prop, "Dilate Erode", "Matte dilate erode side");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
prop = RNA_def_property(srna, "edge_kernel_radius", PROP_INT, PROP_NONE);

View File

@ -153,7 +153,7 @@ DefNode(CompositorNode, CMP_NODE_TEXTURE, def_texture, "TEXTUR
DefNode(CompositorNode, CMP_NODE_TRANSLATE, def_cmp_translate, "TRANSLATE", Translate, "Translate", "" )
DefNode(CompositorNode, CMP_NODE_ZCOMBINE, def_cmp_zcombine, "ZCOMBINE", Zcombine, "Z Combine", "" )
DefNode(CompositorNode, CMP_NODE_COMBRGBA_LEGACY,0, "COMBRGBA", CombRGBA, "Combine RGBA", "" )
DefNode(CompositorNode, CMP_NODE_DILATEERODE, def_cmp_dilate_erode, "DILATEERODE", DilateErode, "Dilate/Erode", "" )
DefNode(CompositorNode, CMP_NODE_DILATEERODE, def_cmp_dilate_erode, "DILATEERODE", DilateErode, "Dilate Erode", "" )
DefNode(CompositorNode, CMP_NODE_INPAINT, def_cmp_inpaint, "INPAINT", Inpaint, "Inpaint", "" )
DefNode(CompositorNode, CMP_NODE_DESPECKLE, def_cmp_despeckle, "DESPECKLE", Despeckle, "Despeckle", "" )
DefNode(CompositorNode, CMP_NODE_ROTATE, def_cmp_rotate, "ROTATE", Rotate, "Rotate", "" )

View File

@ -24,7 +24,7 @@
#include "node_composite_util.hh"
/* **************** Dilate/Erode ******************** */
/* **************** Dilate Erode ******************** */
namespace blender::nodes::node_composite_dilate_cc {
@ -377,7 +377,7 @@ void register_node_type_cmp_dilateerode()
static bNodeType ntype;
cmp_node_type_base(&ntype, CMP_NODE_DILATEERODE, "Dilate/Erode", NODE_CLASS_OP_FILTER);
cmp_node_type_base(&ntype, CMP_NODE_DILATEERODE, "Dilate Erode", NODE_CLASS_OP_FILTER);
ntype.draw_buttons = file_ns::node_composit_buts_dilateerode;
ntype.declare = file_ns::cmp_node_dilate_declare;
ntype.initfunc = file_ns::node_composit_init_dilateerode;