genre | Generators |
author | Florian Link |
package | MeVisLab/Standard |
dll | MLBasicModules |
definition | mlBasicModules.def |
see also | ImageSave |
keywords | image, ramp, gradient, example |
The module TestPattern creates a test image with a certain size, page size, data type and a special pattern.
Define your parameters for the new image, press the Apply button. Then you can either view the image in a viewer or save it with the ImageSave operator.
This module doesn't support integer vector types as output data type for any pattern that generates a ramp.
Apply: Trigger | Gradient: Vector3 | X (sizeX): Integer |
Auto: Bool | Off Diagonal: Vector3 | X (pageSizeX): Integer |
C (sizeC): Integer | Pattern: Enum | Y (sizeY): Integer |
C (pageSizeC): Integer | T (sizeT): Integer | Y (pageSizeY): Integer |
Data Type: Enum | T (pageSizeT): Integer | Z (sizeZ): Integer |
Eigenvalues: Vector3 | U (sizeU): Integer | Z (pageSizeZ): Integer |
Fill Value 1: String | U (pageSizeU): Integer | |
Fill Value 2: String | Voxel Size: Vector3 |
Sets the x-extent of the output image.
Sets the y-extent of the output image.
Sets the z-extent of the output image.
Sets the c-extent of the output image.
Sets the t-extent of the output image.
Sets the u-extent of the output image.
Defines the data type of the output image.
The two fill values Fill Value 1 and Fill Value 2 need to be in the data type's range.
Values:
Title | Name |
---|---|
int8 | int8 |
unsigned int8 | unsigned int8 |
int16 | int16 |
unsigned int16 | unsigned int16 |
int32 | int32 |
unsigned int32 | unsigned int32 |
float | float |
double | double |
int64 | int64 |
unsigned int64 | unsigned int64 |
complexf | complexf |
complexd | complexd |
quaternionf | quaternionf |
quaterniond | quaterniond |
vec2 | vec2 |
vec3 | vec3 |
vec4 | vec4 |
vec5 | vec5 |
vec6 | vec6 |
vec7 | vec7 |
vec8 | vec8 |
vec9 | vec9 |
vec10 | vec10 |
vec16 | vec16 |
vec32 | vec32 |
vec64 | vec64 |
Vector2i8 | Vector2i8 |
Vector2i16 | Vector2i16 |
Vector2i32 | Vector2i32 |
Vector2i64 | Vector2i64 |
Vector3i8 | Vector3i8 |
Vector3i16 | Vector3i16 |
Vector3i32 | Vector3i32 |
Vector3i64 | Vector3i64 |
Vector4i8 | Vector4i8 |
Vector4i16 | Vector4i16 |
Vector4i32 | Vector4i32 |
Vector4i64 | Vector4i64 |
Vector5i8 | Vector5i8 |
Vector5i16 | Vector5i16 |
Vector5i32 | Vector5i32 |
Vector5i64 | Vector5i64 |
Vector6i8 | Vector6i8 |
Vector6i16 | Vector6i16 |
Vector6i32 | Vector6i32 |
Vector6i64 | Vector6i64 |
Vector7i8 | Vector7i8 |
Vector7i16 | Vector7i16 |
Vector7i32 | Vector7i32 |
Vector7i64 | Vector7i64 |
Vector8i8 | Vector8i8 |
Vector8i16 | Vector8i16 |
Vector8i32 | Vector8i32 |
Vector8i64 | Vector8i64 |
Vector9i8 | Vector9i8 |
Vector9i16 | Vector9i16 |
Vector9i32 | Vector9i32 |
Vector9i64 | Vector9i64 |
Vector10i8 | Vector10i8 |
Vector10i16 | Vector10i16 |
Vector10i32 | Vector10i32 |
Vector10i64 | Vector10i64 |
Vector16i8 | Vector16i8 |
Vector16i16 | Vector16i16 |
Vector16i32 | Vector16i32 |
Vector16i64 | Vector16i64 |
Vector32i8 | Vector32i8 |
Vector32i16 | Vector32i16 |
Vector32i32 | Vector32i32 |
Vector32i64 | Vector32i64 |
Vector64i8 | Vector64i8 |
Vector64i16 | Vector64i16 |
Vector64i32 | Vector64i32 |
Vector64i64 | Vector64i64 |
mat2 | mat2 |
mat3 | mat3 |
mat4 | mat4 |
mat5 | mat5 |
mat6 | mat6 |
matf2 | matf2 |
matf3 | matf3 |
matf4 | matf4 |
matf5 | matf5 |
matf6 | matf6 |
vecf2 | vecf2 |
vecf3 | vecf3 |
vecf4 | vecf4 |
vecf5 | vecf5 |
vecf6 | vecf6 |
vecf7 | vecf7 |
vecf8 | vecf8 |
vecf9 | vecf9 |
vecf10 | vecf10 |
vecf16 | vecf16 |
vecf32 | vecf32 |
vecf64 | vecf64 |
Sets the first value used for pattern calculation.
Normally used as minimum value of the output image.
If pressed, the output of the module is being updated.
If checked, the module updates its output on any field change.
Defines the pattern that is being generated by the module.
Values:
Title | Name | Deprecated Name | Description |
---|---|---|---|
XStripes | XStripes | x stripes | Fine stripes in x direction. |
YStripes | YStripes | y stripes | Fine stripes in y direction. |
XYStripes | XYStripes | xy stripes | Fine stripes in x and y direction. |
Page Checkers | PageCheckers | The pages are colored like a chess board. | |
Page Border | PageBorder | The resulting image will have Fill Value 1 at the high and low page border in x, y and z dimension, but only if the page size in that dimension is higher than 2, otherwise borders are omitted for that dimension. Incomplete pages will have their high border drawn at the image border. |
|
Image Border | ImageBorder | The resulting image will have Fill Value 1 at its high and low image borders in the x and y dimension, Fill Value 2 everywhere else. | |
XRamp | XRamp | x ramp | A simple linear ramp from Fill Value 1 to Fill Value 2 along the x dimension. |
YRamp | YRamp | y ramp | A simple linear ramp from Fill Value 1 to Fill Value 2 along the y dimension. |
ZRamp | ZRamp | A simple linear ramp from Fill Value 1 to Fill Value 2 along the z dimension. | |
XYBorder Center | XYBorderCenter | Same as ImageBorder, with an additional dot in the middle of the (3D) image. | |
Corners Midpoints | CornersMidpoints | The corner voxels and all middle voxels on the surface of the 3D cube have Fill Value 1, all others have Fill Value 2. | |
Filled Max Ellipsoid | FilledMaxEllipsoid | The image is filled with Fill Value 1 within the maximum ellipsoid fitting in the volume of the image, and with Fill Value 2 in the remaining area. This works in 2D and 3D. |
|
Page Checkers Gray | PageCheckersGray | The pages are colored like a chess board with different values starting in the upper left corner with Fill Value 1. | |
Volume Ramp | VolumeRamp | The relative position of a component of a voxel position in the interval [1, Image Extent D] where D is the dimension of the component is scaled to [0,1]. All values for all components are multiplied and scaled to the range [Fill Value 1, Fill Value 2] and written into the image. The appearance is a continuous ramp through the entire volume, dark at the origin and bright at the maximum extent of the image. |
|
Index Ramp | IndexRamp | All voxels of the image are labeled with increasing indices linearly from position (0,0,0,0,0,0) up to the image extent. The indices are scaled to the range [Fill Value 1, Fill Value 2] and written into the image. The appearance is a continuous ramp through the entire volume, dark at the origin and bright at the maximum extent of the image. |
|
Empty | Empty | The entire image is filled with Fill Value 1 and [Fill Value 1, Fill Value 2] are defined as minimum and maximum voxel value of the image. | |
Page Ids | PageIds | The voxel values in the pages are set to the id of the corresponding pages and the minimum/maximum values of the image are set to [0, NumPageIds]. | |
XYRadial Ramp | XYRadialRamp | The voxel values increase with an increasing angle between the first dimension and the vector that points from the voxel to the image center. The appearance is a continuous radial ramp centered at the image center. |
|
XZRadial Ramp | XZRadialRamp | The voxel values increase with an increasing angle between the first dimension and the vector that points from the voxel to the image center. The appearance is a continuous radial ramp centered at the image center. |
|
YZRadial Ramp | YZRadialRamp | The voxel values increase with an increasing angle between the first dimension and the vector that points from the voxel to the image center. The appearance is a continuous radial ramp centered at the image center. |
|
Diag Quadratic Form | DiagQuadraticForm | The voxel values in the pages are computed employing parameters of a quadratic form (Gradient and Eigenvalues): f(x,y,z) = Fill Value 1 + <Gradient|(x,y,z)> + <Eigenvalues| (x^2,y^2,z^2)> for visualisation and test of hesse matrix analysis Note that the quadratic forms do not set proper min and max values as these are hard to determine in advance for general parameter settings. Please use a MinMaxScan after a TestPattern generating quadratic forms. Quadratic forms make more sense with signed int or floating point data types. There is a special example for this mode. |
|
Full Quadratic Form | FullQuadraticForm | The voxel values in the pages are computed employing parameters of a quadratic form (Gradient, Eigenvalues and Off Diagonal): f(x,y,z) = Fill Value 1 + <Gradient|(x,y,z)> + <Eigenvalues| (x^2,y^2,z^2)> + 2*(offDiag_x * x*y + offDiag_y * y*z + offDiag_z * x*z) Note that the quadratic forms do not set proper min and max values, as these are hard to determine in advance for general parameter settings. Please use a MinMaxScan after a TestPattern generating quadratic forms. Quadratic forms make more sense with signed int or floating point data types. There is a special example for this mode. |
Sets the distance between voxel centers.
Sets a gradient value used in DiagQuadraticForm and FullQuadraticForm patterns.
Sets eigen values used in DiagQuadraticForm and FullQuadraticForm patterns.
Sets off diagonal elements used in FullQuadraticForm pattern.
Sets the second value used for pattern calculation.
Normally used as maximum value of the output image.
Sets the x-extent of the page size of the output image.
Sets the y-extent of the page size of the output image.
Sets the z-extent of the page size of the output image.
Sets the c-extent of the page size of the output image.