VisionX V4 | VTKRND | VisionX V4 |
vtkrnd − VTK render engine |
vtkrnd if=infile cf=colorfile of=outfile [im=] [vf=] [bg=] [size=] [azim=] [elev=] [roll=] [zoom=] [scale=] [-v3d] [-i] [-nf] [-t] [-v] |
Vtkrnd is a renderer that utilizes VTK libraries. [if] is a map file that has a unique label for each rendered object. The color table file [cf] can be used to define color and rendering mode for each object. Vtkrnd engine allows for the volume rendering. For volume rendering a VisionX image [im] and vtk color file [vf] are required. Only one object in the color table can be volume-rendered. Formats of [cf] and [vf] are described below. Vtkrnd uses vxtovtk to convert VisionX images to VTK format. Rendering in interactive mode is supported through [-i] flag. VTK interactive mode is only supported for the machine with on-screen version of VTK. Vtkrnd also supports rendering of a frame-separated VisionX polygon image with [-v3d] flag. In this case, [if] should be a VisionX polygon image instead of a map file. [cf] should still be used with this option. Vtkrnd uses the off-screen engine if the off-screen version of VTK is installed. Otherwise, it uses the regular version of VTK. With off-screen rendering, output image will be created without any pop-up window. Vtkrnd makes use of a file vtk.tcl in VisionX’s etc directory. |
[if] and [im] (if specified) need to have same pixel type. |
if= |
Map file (VisionX 3D image) with unique id for each object |
||
of= |
Output rendered image |
||
cf= |
Color table file that defines color and rendering option for each object. Format is "[id],[red],[green],[blue],[opacity],[render mode]". [id] is an object id. [red],[green],[blue],[opacity] are numbers between 0 and 1. [render mode] is 0 (polygon rendering) or 1 (volume rendering). |
||
im= |
VisionX image to be used for volume rendering. Required for volume rendering. |
||
vf= |
Volume rendering transfer function file. Required for volume rendering. To define an opacity for certain intensity, use "opacityv AddPoint [intensity] [opacity]". To define a color for the intensity, use "colorv AddRGBPoint [intensity] [red] [green] [blue]" |
||
bg= |
Background color [R,G,B]. Default=0,0,0 |
||
size= |
render window size. Default=256,256 |
||
zoom= |
scale factor for object scaling. Zoom of 1.0 outputs objects in their original scale. Default=1.0 |
||
azim= |
azimuth: rotation angle about y-axis. Default=0.0 |
||
elev= |
elev: rotation angle about x-axis. Default=0.0 |
||
roll= |
roll: rotation angle about z-axis. Default=0.0 |
||
-i |
interactive mode |
||
-nf |
do not smooth polygon surface |
||
-t |
output TIFF file (default: VisionX file) |
||
-v |
verbose mode. |
J.Lee |