ilk - Man Page
(I)mage (L)inear Trans(X-->K)forms
Synopsis
ilk [@file ...] [-i <image>] [-0 <origin>] -t <xform0 ...> [-k <kernel>] [-min <xMin yMin>] [-max <xMax yMax>] [-b <boundary>] [-bg <bg0 bg1 ...>] [-s <xSize ySize>] [-a <avg #>] [-o <filename>]
Description
(I)mage (L)inear Trans(X-->K)forms. Applies linear (homogenous coordinate) transforms to a given image, using the given kernel for resampling.
Options
- @file ...
response file(s) containing command-line arguments
- -i <image>
input image; default: “-”
- -0 <origin>
where to locate (0,0) prior to applying transforms.
- “u:<float>,<float>” locate origin in a unit box [0,1]x[0,1] which covers the original image
- “p:<float>,<float>” locate origin at a particular pixel location, in the index space of the image
default: “p:0,0”
- -t <xform0 ...>
transform(s) to apply to image. Transforms are applied in the order in which they appear.
- “identity”: no geometric transform, just resampling
- “translate:x,y”: shift image by vector (x,y), as measured in pixels
- “rotate:ang”: rotate CCW by ang degrees
- “scale:xs,ys”: scale by xs in X, and ys in Y
- “shear:fix,amnt”: shear by amnt, keeping fixed the pixels along a direction <fix> degrees from the X axis
- “flip:ang”: flip along axis an angle <ang> degrees from the X axis
- “a,b,tx,c,d,ty”: specify the transform explicitly in row-major order (opposite of PostScript) (1 or more 2D transforms)
- -k <kernel>
reconstruction kernel; default: “cubic:0,0.5”
- -min <xMin yMin>
lower bounding corner of output image. Default (by not using this option) is the lower corner of input image. (2 doubles)
- -max <xMax yMax>
upper bounding corner of output image. Default (by not using this option) is the upper corner of input image. (2 doubles)
- -b <boundary>
what to do when sampling outside original image.
- “bleed”: copy values at image border outward
- “wrap”: do wrap-around on image locations
- “pad”: use a given background value (via “-bg”)
default: “bleed”
- -bg <bg0 bg1 ...>
background color to use with boundary behavior “pad”. Defaults to all zeroes. (1 or more floats)
- -s <xSize ySize>
For each axis, information about how many samples in output:
- “x<float>”: number of output samples is some scaling of the number input of samples; multiplied by <float>
- “<int>”: specify exact number of samples (2 sampling specifications)
default: “x1 x1”
- -a <avg #>
number of averages (if there there is only one rotation) (unsigned int); default: “0”
- -o <filename>
file to write output nrrd to (string); default: “-”
See Also
gprobe(1), miter(1), mrender(1), nrrdSanity(1), overrgb(1), puller(1), tend(1), unu(1), vprobe(1)
Referenced By
gprobe(1), miter(1), mrender(1), nrrdSanity(1), overrgb(1), puller(1), tend(1), tend-anplot(1), unu(1), vprobe(1).