Pink 0.9

barycentrelab.c File Reference

compute the center of gravity of each labeled region More...


Detailed Description

compute the center of gravity of each labeled region

Usage: barycentrelab in.pgm out.pgm

Description: Compute the center of gravity of each labeled region. Labels should be consecutive integers. Only strictly positive labels are considered. The result is an image that contains labelled points. More precisely, each barycentre is represented by the nearest grid point that is given the same label as the region.

Types supported: long 2d, long 3d

Category: geo

Author:
Michel Couprie