SYNOPSIS
vselbig [infile] [outfile]DESCRIPTION
vselbig selects the largest labelled component of a labelled image.The input image must be a labelled image of type "ubyte" or of type "short". Typically, it has been created by some labelling algorithm, such as "vlabel2d", "vlabel3d", or some segmentation routine, e.g. "visodata". vselbig then creates a binary output image in which pixels belonging to the largest component (i.e. the most frequent label value) have value "1" and all other pixels have value "0".
TYPICAL PROCESSING CHAIN
The following is a typical processing chain:visodata -in image.v | vbinarize -min 2 -max 2 | vlabel3d | vselbig -out result.v
This chain will segment the input image (visodata). It will then extract the class labelled "2" (vbinarize) and perform a connected component analysis of this class (vlabel3d). Finally, the largest connected component of class "2" is selected using vselbig.
COMMAND LINE OPTIONS
vselbig accepts the following options:- -help
- Prints a message describing options.
- -in infile
- Specifies the Vista data file containing the input images.
- -out outfile
- Specifies where to write the output images as a Vista data file.
Input and output files can be specified on the command line or allowed to default to the standard input and output streams.