recConnectedComponent

MainPage

Description: This method returns the connected component corresponding to the node of the morphological tree structure.

Constructor signature: img = MorphTreeAlpha.recLevelComponent(node,bbonly = False)

Input:
  • node, int, node to be reconstructed.
  • bbonly, bool, if set to true it will return only the bounding-box containing the connected component.

Output:

  • img, bool. Image corresponding to the morphological tree structure.

C++ Aux Function

OK

Python Wrapper

OK [C/C++ extension is up-to-date]

Python Implementation

Example

Original image

Node: 1

Node: 2

Node: 3

Node: 4

Node: 5

Node: 6

Node: 7

Node: 8

Node: 9

Node: 10

Node: 11

Node: 12

Node: 13

Node: 14

Node: 15

Node: 16

Node: 17

Node: 18

Node: 19

Node: 20