VectorToColor provides for a visualization of vector fields by color maps.
Connect an input image with vector components encoded in the u-dimension to the input.
The output contains the color coded image with color components in the c-dimension.
The vector fields are assumed to have antipodal symmetry. That means the two vectors
-v convey the same information.
Furthermore the vectors are assumed to be inside the unit sphere. Thus the vector components are scaled from
[minVoxelValueIn, maxVoxelValueIn] to
[-1, 1] before they are transformed to colors.
Defines the color coding mode.
For modes other than Direction Off and Direction Absolute, the mode does the following.
Vectors are color coded with respect to a projection plane. The length of the vectors defines the lightness of the corresponding colors. The projection of the normalized vectors onto the projection plane is used for the definition of hue and saturation of the corresponding colors: Orientation and length of the projection define hue and saturation, respectively. The projection plane is either axial, coronal, sagittal or user defined according to the selections given above. For a detailed description of this “unique planar color coding” see[M. Schlueter et al.] Unique Planar color coding of fiber bundles and its application to fiber integrity quantification, Proc. of ISBI 2004, pages 900-903, 2004
Note that the user defined color mode allows for detecting wrong gradient schemes and for finding out a possible flip of the x-, y-, or z-component (see the module DiffusionTensorAnalysis). The leftmost image shows a color-coding, where a correct gradient scheme has been used. If the color coding looks like one of the other images, use the appropriate flip denoted below to turn the scheme into a correct one so that it looks like the left image.
|The length of the input vectors is coded in a gray scale.
The absolute values of the first three vector components are taken as RGB values.
The RGB values at the output are normalized by their maximum and multiplied by the length of the vector.
1 1 0, 0 1 1,¶
Color Codingis set to Direction User, an arbitrary projection plane can be defined in the text field by entering two vectors, where vector components are separated by blanks. Missing components are interpreted as zero. If all vectors are zero, the axial projection plane is used for color coding.
Sets a modification value for the contrast.
If checked, alpha channel is used if you do not would like to scale the color values automatically by the lengths of the vectors.
Then, the lengths will be stored in a separate alpha channel so that the c-dimension of the output image will be increased by one.