VisionX V4 | VDIST | VisionX V4 |
vdist - distance transform |
vdist [if=] [of=] [bb=] [-m|-c] [-2d] [-v] |
vdist performs distance transform on a binary image. Each pixel in the output image is encoded with the distance to the closest non-zero pixel of the input image. By default, 3D distance transform is performed. When -2d flag is used, 2D distance transform is performed in individual slice. Two distance schemes can be used with vdist: Manhattan distance and Chessboard distance. Manhattan distance is the sum of distances in all dimensions. Chessboard distance is the minimum of distances in all dimensions. Default scheme is Manhattan distance. Distance transform may be performed only on the region of interest by specifying new bounding box (bb=). The output image will have the new bounding box when [bb=] is specified. |
Input should be a binary image of byte format, and output is a short image. [bb=] has to be smaller than the bounding box of the input image. |
if= |
input image |
|||
of= |
output image |
|||
bb= |
bounding box (region of interest) |
|||
-m |
use Manhattan distance (default) |
|||
-c |
use Chessboard distance |
|||
-2d |
perform 2D distance transform for each slice |
|||
-v |
verbose mode |
Jaesung Lee |