combine_warp

combine_warp


Purpose:

This program allows .warp files to be combined with affine .air files so that tranformations that would otherwise require data to be repeatedly interpolated can be done instead in a single step. Multiple .warp files cannot be combined with one another and .air files that include perspective transformations cannot be combined with .warp files.


Usage:

combine_warp output overwrite?(y/n) .air-file1 .warp-file .air-file3

where the following definitions apply:
 
 
output
the name of the .warp file to be created
overwrite?(y/n)
the letter 'y' if you want to allow a preexisting file with the nameoutput to be overwritten
.air-file1
the name of a .air file that has the same standard file as the .warp file you are trying to create. You can also use 'null' if you want the final .warp file to target the same standard file as the specified .warp file.
.warp-file
the name of the .warp file. It must have a standard file that is spatially equivalent to the reslice file of .air_file1 and a reslice file that is spatially equivalent to the standard file of .air_file3
.air-file3
the name of a .air file that has the same reslice file as the .warp file you are trying to create. You can alsouse 'null' if you want the final .warp file to target the same reslice file as the specified .warp file.


Examples:

combine_warp A.warpC n B.airC A.warpB null

combine_warp A.warpC n null B.warpC A.airB

combine_warp A.warpD y C.airD B.warpC A.airB


Comments:


Error messages: (alphabetical by case)

See also: Generic error messages

.air file ____ is perspective, not affine
  • perspective .air files cannot be combined with .warp files
Incompatibility of dimensions ____ and ____
  • See discussion in comments
Incompatibility of voxel sizes ____ and ____
  • See discussion in comments
Name of output .air file cannot contain .img or .hdr
  • This prevents overwriting of image data.


See also:


Modified: Wed Dec 11, 1996


© 1995-6 Roger P. Woods, M.D.(rwoods@ucla.edu)