List of my modules...

Module: Pore_Merge

Description:

Given a set of pores (or elements in general), with each non-zero value identifying a distinct object, if such an object has a high enough amount of its surface in contact with other objects (i.e. not counting the interface with zero-valued pixels), then it will be merged to the object with which it shares the most. Applied until convergence.

Illustration on a set of six pores. On the left, a poor decomposition: the red and purple pores share 63% and 54% respectively with their blue neighbour. On the right is the result of the merging.

Connections:

Image

[required]
The input image comes in through this port. For now, the only input type that has been implemented is HxUniformScalarField3.

Ports:

Do


Push the button to open the input.

Ratio


Ratio of the connecting surfaces to the total surface.

Commands:

Additional options can be accessed when typing in the console Pore_Merge COMMAND_NAME. Typing the command again usually reverts back to original settings.

verbose

Displays timing information after the computation. Retype to hide info.

create

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

debug

Turns on or off debug mode, giving info on which pores are checked, how much surface they share with their neighbours, etc.