Segment tracker

<< Click to Display Table of Contents >>

Navigation:  Function block library > Image processing >

Segment tracker

Previous pageReturn to chapter overviewNext page

segmenttracker

Find closed segments in a greyscale image and track an initially chosen segment. To track all segments within an image multiple Segment trackers can be connected one after another.

Inputs

Type

Dimension

Default

Description

Input

image



Input image

Restart

bool


false

Segment tracking is newly initialized if this input is true. This makes it possible to switch during program execution to the largest segment, the segement closest to the center and so on. If segment tracking is not requested set this input constantly to true.






Outputs





x

int

pixel


x-coordinate of the segments center

y

int

pixel


y-coordinate of the segments center

Area

int

pixel


Number of pixel within the segment

vx

int

pixel/step


Number of pixel the segment moved in x-direction since the previous time step. Positive: movement to the right.

vy

int

pixel/step


Number of pixel the segment moved in y-direction since the previous time step. Positive: movement to the bottom.

Num segments found

int



Number of segments found

Output

image



Greyscale image with information about the segments found. A downstream segment tracker can tracker remaining segments.