Image
Description
- Derived from
- Extended by
-
CompositeImage abstract
FileBasedImage abstract
Abstract base class for IImage implementations.
Public / Constructors
Combine
Combines the given pixel channels into a new image.
The grayscale intensities of each channel image will be used as the channel value. The channels are filled in the parameter order, so truecolor channels will overwrite the grayscale intensities. The given source image will be used to fill in the missing channels.
EncodeNormals
Encodes a normal map image, assuming that all tangent-space normal vectors point upwards (i.e. the minimum blue channel value is 0.5
).
The pixels of the given normal in map are interpreted as follows:
red :[0..1] => X:[-1 .. +1] green:[0..1] => Y:[-1 .. +1] blue :[0..1] => Z:[-1 .. +1]
The vector (X,Y,Z)
is then normalized to unit-length. The grayscale intensity I
is computed from the pixel in map opt (if not null
). The pixel P
of the resulting image is then computed like this:
map == null : P.red = X * 0.5 - 0.5 P.green = Y * 0.5 - 0.5 map != null : P.red = X * 0.5 - 0.5 P.green = I P.blue = Y * 0.5 - 0.5
File
4 overloads
Reads the given image file.
- IOException
-
If file in is not a valid path name.
Reads the given image file.
Reads the given image file.
Reads the given pixel data as an embedded PXB
image file.
Grid
Creates an image that arranges a sequence of tile images in a grid.
A grid image defines a virtual canvas which is divided into a regular grid. An input tile image is placed into each cell of that grid. The resulting image contains the image data of the entire virtual canvas.
col col col col col 0 1 2 3 4 +-------+-------+-------+-------+-------+ | | | | | | row 0 | 0 | 1 | 2 | 3 | 4 | | | | | | | +-------+-------+-------+-------+-------+ | | | | | | row 1 | 5 | 6 | 7 | 8 | 9 | | | | | | | +-------+-------+-------+-------+-------+ | | | | | | row 2 | 10 | 11 | 12 | 13 | 14 | | | | | | | +-------+-------+-------+-------+-------+ rows := 3 columns := 5 # tiles := 15
The sequence in which the tile image have been added to the grid determines the grid cell in which each of them will be placed. Given the zero-based index i
of a tile image in the sequence, the coordinates of its grid cell then are:
x := i % columns y := i / columns
An optional overlap in value can be specified. This value depicts by how many pixels adjacent grid cells shall overlap. Overlap is usually required for tiled datasets where the first and last rows resp. columns of adjacent tiles contain the same pixels.
Procedural
Creates an image that is generated by a procedural function.
If function in is a IColorFunction, the image pixels will be set to the noise output value of the color function. If it is a IScalarFunction, the noise output value range [0..1] is mapped to normalized scanline values in the range [0..16777215], producing opaque grayscale intensities. If it is a IVectorFunction, the noise output vector is normalized and the resulting XYZ coordinate values in the range [-1..+1] are mapped to normalized scanline RGB values in the range [0..16777215], producing opaque colors.
Public / Methods
StreamingSource
2 overloads
Creates a IStreamingSource for ColorBuffer data, using the given images.
- See also
Creates a IStreamingSource for ColorBuffer data, using the given image provider.
- See also
Protected / Methods
DoReadImage
Reads the image data.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If validation of the resulting IImageReader has failed, for example because of an unsupported file format feature.
- GeorefException
-
If the image contains unsupported geo-referencing metadata.
DoToConfig
Returns the config value for this image.
- ConfigException
-
If an unexpected error has occurred while building the config value.