Command Line Tools

The following basic command line tools (part of the SimpleTools Module) are available:

Image Information: imInfo

Prints image information from the image file header.

imInfo input.gipl [options]

Options include:

-dtype print type of data in a voxel (char, short, float, etc.)

-nvox print number of voxels in each dimension

-vxdim print voxel dimensions in mm/sec

-fov print field of view in mm

-orient print scan orientation angles with respect to axial data

-date print scan date string (if known)

-time print scan time string (if known)

-name print patient name string (if known)

-pid print patient ID information (if known)

Set Header Values Directly: setImHeader

setImHeader input.gipl output.gipl [options]

Options are:

-AcqDate 10/10/2008 set acquisition date

-AcqTime 10:45 set acquisition time

Reflect and Swap Image Axes: imFlip

imFlip input.gipl output.gipl [options]

Options are one or more operations applied in sequence:

-reflectX

-reflectY

-reflectZ

-swapXY

-swapXZ

Truncate Image Volume: imTrunc

imTrunc input.gipl output.gipl [options]

Options are:

-XStart vox start voxel for extracted region

-XEnd vox end voxel for extracted region

-YStart vox start voxel for extracted region

-YEnd vox end voxel for extracted region

-ZStart vox start voxel for extracted region

-ZEnd vox end voxel for extracted region

-dofout transform.dof transformation to bring truncated volume back to original image

Apply Linear Transformation to an Image: mmtrans

Applies a linear transformation to floatImage.gipl to resample it to the coordinate system of refImage.gipl

mmtrans refImage.gipl floatImage.gipl outputFloat2Ref.gipl transform.dof [options]

Replace Voxel Values in an Image: repRange

Replaces all voxel values in the range minValue to maxValue with newValue

repRange input.gipl output.gipl -NewVal newValue -MinVal minValue -MaxVal maxValue

 

top