geodesic propagation of image values
Usage: propgeo in.pgm mask.pgm connex mode out.pgm
Description: Propagates certain values of the original image in.pgm, geodesicaly wrt the connected components of the binary image mask.pgm. The connexity is specified by the parameter connex. The mode is one of the following ones:
- 0 | min : propagates the minimal value of the component
- 1 | max : propagates the maximal value of the component
- 2 | moy : propagates the mean grayscale value of the component
- 3 | min1 : selects one point the value of which is equal to the min
- 4 | max1 : selects one point the value of which is equal to the max
- 5 | moy1 : selects one point the value of which is nearest to the mean
- 6 | minb : propagates the minimal value of the external border of the component
- 7 | maxb : propagates the maximal value of the external border of the component
- 8 | moyb : propagates the mean value of the external border of the component
- 9 | randb : fills the component with random values, with a normal distribution centered around the value computed as for moyb
Only modes min, max and moy are available for int32_t images.
Types supported: byte 2d, int32_t 2d byte 3d, int32_t 3d
Category: connect
- Author:
- Michel Couprie