Skip to content

User Support banner image

Useful Tools

Some useful tools that could be used for more effective visualzation can be found under svt_build/tools/ directory. The following tools should be located in the directory:

formatinfo.o
genraw.o
genrawlarge.o
getopt.o
getopt1.o
meshconvert.o
meshinfo.o
ppmtomesh.o
rawhist.o
rawminmax.o
rawmixer.o
resample.o
rgbtoscalar.o
vcomposite.o

To view a help page for any tool, type the name of the command together with -h. For example, to view the help file for getopt, type:

getopt -h

genraw

Creates raw volume files

To create a test file with name mytestfile, type:

% ./genraw --test mytestfile

rawminmax

Finds out the minimum and maximum in a raw volume file

To find min and max value for mytestfile created by genraw command, type:

% ./rawminmax --rawtype float myDataFile

rawhist

Creates a histogram for the data set and finds minimum and maximum values in the datset. The generated histogram can be used to get better renderings. Histograms only work for scalar data sets

This command generates the histogram destribution of data for mytestfile and writes it to the file hist_result:

% ./rawhist --rawtype float mytestfile >hist_result
This command generates the histogram distribution of data for mytestfile in logarithm mode and writes it to the file hist_log_result:

% ./rawhist --rawtype float --logmode myDataFile >hist_log_result
This is useful for dataset which have most of data concentrated in the lower region.

rawmixer

Creates a subsampled mix of 2, 3, or 4 volumes and magnitude from 3 volumes. This only work for scalar dataset.

This command generates subsampled file skipping 1 float in x, 2 floats in y, and 3 floats in z. The resulting file has the dimensions of 50 x 34 x 25:

% ./rawmixer --rawtype float --dim 100 100 100 --stride 1 2 3 mytestfile out_subsampled_file

This command can be used to mix volumes to create multivriate volumes. It generates a combined file with all 3 infile variables in one file:

% ./rawmixer --rawtype float --mix3 infile_1 infile_2 infile_3 out_file

This command will create a magnitude file from three component volumes. It generates the file from three input volumes based on mag=sqrt( X*X + Y*Y + Z*Z)

% ./rawmixer --rawtype float --mag3 x_vol_file y_vol_file z_vol_file out_magnitude_file

Did You Get
What You
Wanted?
Yes No
Comments