Generates test images
Allows the user to create test images of specified size and characteristics. The image may be one of four types:
UNIFORM - All pixels have the same specified value. RANDOM - Pixel values are randomly distributed within a specified range. GAUSSIAN - Pixel values are normally distributed with a specified mean and standard deviation. WEDGE - Pixel values are generated as grey level wedge.
- OUT
- Output image. Output name to be assigned to the image.
- NBANDS(1)
- Number of bands. Number of bands in the output image.
- NL(512)
- Number of lines. Specifies the number of lines per output image.
- NS(512)
- Number of samples. Specifies the number of samples in each output image line.
- PIXVAL(0)
- Pixel values. Specifies the pixel values to be used to generate a uniform image. Each entry corresponds to an output image band. If only one value is specified, the same value is used for all the bands. If NBANDS is greater than the number of values in PIXVAL, the program will abort; in addition, if the number of values specified by PIXVAL is greater than the number of output bands specified with NBANDS, the program will abort.
- ODTYPE(BYTE)
- Output data type. The data type of the output image.
= BYTE: BYTE (8-bit unsigned integer) (0 through 255) = I*2: INTEGER*2 (16-bit signed integer) (-32768 through 32767) = I*4: INTEGER*4 (32-bit signed integer) (-2147483648 through 2147483648) = R*4: REAL*4 (32-bit signed real) (System dependent)
- OUT
- Output image. Output name to be assigned to the image.
- NBANDS(1)
- Number of bands. Number of bands in the output image.
- NL(512)
- Number of lines. Specifies the number of lines per output image.
- NS(512)
- Number of samples. Specifies the number of samples in each output image line.
- MAXVAL(255)
- Maximum pixel value. Specifies the upper bound of the range of pixel values to be used in generating a random image.
- MINVAL(0)
- Minimum pixel value. Specifies the lower bound of the range of pixel values to be used in generating a random image.
- SEEDVAL(1)
- Seed value. This value is used in generation of sequences of random numbers. It must be positive integer or zero.
- ODTYPE(BYTE)
- Output data type. The data type of the output image.
= BYTE: BYTE (8-bit unsigned integer) (0 through 255) = I*2: INTEGER*2 (16-bit signed integer) (-32768 through 32767) = I*4: INTEGER*4 (32-bit signed integer) (-2147483648 through 2147483648) = R*4: REAL*4 (32-bit signed real) (System dependent)
- OUT
- Output image. Output name to be assigned to the image.
- NBANDS(1)
- Number of bands. Number of bands in the output image.
- NL(512)
- Number of lines. Specifies the number of lines per output image.
- NS(512)
- Number of samples. Specifies the number of samples in each output image line.
- MEANVAL(127.0)
- Mean value. Specifies the average pixel value in the Gaussian output image to be generated.
- STDEV(30)
- Standard deviation. Specifies the standard deviation of pixel values in output Gaussian image to be generated.
- SEEDVAL(1)
- Seed value. This value is used in generation of sequences of random numbers. It must be positive integer or zero.
- ODTYPE(BYTE)
- Output data type. The data type of the output image.
= BYTE: BYTE (8-bit unsigned integer) (0 through 255) = I*2: INTEGER*2 (16-bit signed integer) (-32768 through 32767) = I*4: INTEGER*4 (32-bit signed integer) (-2147483648 through 2147483648) = R*4: REAL*4 (32-bit signed real) (System dependent)
- OUT
- Output image. Output name to be assigned to the image.
- NBANDS(1)
- Number of bands. Number of bands in the output image.
- NL(512)
- Number of lines. Specifies the number of lines per output image.
- NS(512)
- Number of samples. Specifies the number of samples in each output image line.
- WEDDIR(H)
- Wedge direction.
= H: Horizontal wedge = V: Vertical wedge.Specifies the direction of the wedge. If horizontal (vertical), the first (top) pixel of each row (column) will have LTGREY as its value and the last (bottom) pixel will have RBGREY as its value with NLEVELS grey levels in between.
- LTGREY(0.0)
- Left side and top grey level. Grey level for the first (top) pixel when the direction is horizontal (vertical).
- RBGREY(255.0)
- Right side and bottom grey level. Grey level for the last (bottom) pixel when the direction is horizontal (vertical).
- NLEVELS(16)
- Number of levels. NLEVELS has to be less than or equal to ABS (RBGREY - LTGREY + 1) for images other than REAL*4. For REAL*4 output images, NLEVELS may exceed this constraint.
- ODTYPE(BYTE)
- Output data type. The data type of the output image.
= BYTE: BYTE (8-bit unsigned integer) (0 through 255) = I*2: INTEGER*2 (16-bit signed integer) (-32768 through 32767) = I*4: INTEGER*4 (32-bit signed integer) (-2147483648 through 2147483648) = R*4: REAL*4 (32-bit signed real) (System dependent)
This creates OUT.DAT, a 512 x 512 BYTE image with four bands consisting of the uniform pixel values of 10, 11, 20, and 30, respectively.
This creates R.OUT, a two-band BYTE output image with pixel values randomly distributed between a minimum of 0 and a maximum of 25. A seed of 2 is used for the random number generator.
This creates G.DAT, an output image with a Gaussian distribution, with a mean of 127 and a standard deviation of 30. The output is a single-band image with a dimension of 512 x 512. The output image is in REAL*4 values.
This creates WEDGE.DAT, a two-band INTEGER*2 output image with a vertical wedge and ten grey-level steps. The value at the top of the wedge is 0 and the value at the bottom is 255.
TESTGEN generates multi-band images of four types: uniform, random, Gaussian, and wedge. The -UNI subcommand generates an image of uniform values. The -GAU subcommand enables the user to generate an image with a normal (Gaussian) distribution of intensity values. The user may also specify the image standard deviation and mean and may assign the seed value to be used in the random number generation. The -RAN subcommand generates random images that can be restricted to a range specified with the MINVAL and MAXVAL parameters. The seed value used in the random number generation can be assigned by the user. The -WED subcommand generates a grey-level wedge image. The wedge orientation may be horizontal or vertical. NLEVELS grey-level values are generated between levels LTGREY and RBGREY (inclusive).
A nonfatal error was encountered during processing. The first error message that is displayed preceding this message is the specific error that was encountered. Processing continues.
Cannot access dynamic memory buffer.
NLEVELS do not fit within data type range.
LTGREY does not fit within data type range.
MAXVAL does not fit within data type range.
MEANVAL does not fit within data type range.
MINVAL does not fit within data type range.
MINVAL cannot be greater than MAXVAL.
If WEDDIR is "V," NLEVELS cannot be greater than the number of lines.
NLEVELS cannot be greater than the absolute value of (RBGREY-LTGREY+1) for output image data types other than REAL*4.
Number of PIXVAL values must be null, one, or match the number of bands specified by NBANDS.
If WEDDIR is "H," NLEVELS must be less than the number of pixels per line.
RBGREY does not fit within data type range.
SEEDVAL does not fit within data type range.
STDEV does not fit within data type range.
PIXVAL values do not fit within data type range.
A fatal error was encounterd. The first error message displayed preceding this message is the specific error that was encountered.