List of my modules...

Module: Relabel_Elements

Description:

Given two images of the same object but decomposed in different ways, this module relabels the elements of the second image to best match the first. The pixels of the object have non-zero values, and each value corresponds to a distinct element. By best match, we mean minimising the sum of differently labelled pixels.

From left to right: a reference partitioning, a second and distinct partitioning (with a different number of elements), and relabeled second partitioning, resembling as best it can the labelling of the reference.

Connections:

Reference

[required]
Reference partitioning, an instance of HxUniformScalarField3.

Image

[required]
Partitioning to relabel.

Ports:

Relabel


Pressing this button starts the computation.

Commands:

Additional options can be accessed when typing in the console Relabel_Elements COMMAND_NAME.

create

Runs the computation. Returns the name of the output, so it can be used in a script, such as set RESULT [Relabel_Elements create].