Provides information about an image.
interface
|
IImageInfo
|
extends
|
IConfigurable
|
||
IGeorefInfo
|
|||||
IPathInfo
|
|||||
base of
|
IImageReader
|
||||
ImageInfo
|
The pixel coverage of the image.
property
|
Coverage
{
get
}
|
||
type
|
PixelCoverage
|
||
value
|
The pixel coverage. |
Remarks:
Usually, images have a pixel coverage of PixelIsArea.
The gamma correction that must be applied to normalized image pixels in order to obtain linear pixel values.
property
|
Gamma
{
get
}
|
||
type
|
float64
|
||
value
|
The gamma correction value (see remarks). |
Remarks:
Depending
on
the
value
V
of
this
property,
the
following
gamma
correction
is
applied:
V
>
0
N
,
the
resulting
linear
pixel
value
L
is
computed
as
L
=
pow(N,
V)
.
V
=
-2.2
(see
GammaFromSrgb)V
=
-0.45455
(see
GammaToSrgb)V
,
the
normalized
and
linear
pixel
values
are
treated
as
being
equivalent.
See also:
IImageReaderReturns georeferencing information.
property
|
Georef
{
get
}
|
||
type
|
Raster
|
||
value
|
The
georeferencing
object
or
null
if
no
georeferencing
is
available. |
||
inherited
|
IGeorefInfo.Georef
|
Height of the image, in pixels.
property
|
Height
{
get
}
|
||
type
|
int32
|
||
value
|
|
Height of the image, in pixels. |
Remarks:
This is the number of image pixels along the Y-axis, which may be different from the raster height (see MapInfo), depending on the pixel coverage.
The file format of the image file.
property
|
ImageFormat
{
get
}
|
||
type
|
ImageFormat
|
||
value
|
|
The image file format. |
Remarks:
The default file format is Any, which will try to load image data using any of the available image formats.
The heightmap layer which shall receive the data of this image.
property
|
Layer
{
get
}
|
||
type
|
HeightmapLayer
|
||
value
|
The target heightmap layer. |
Remarks:
This is not an actual property of the image, but included here for convenience when images are imported into heightmap datasets.
Returns a MapInfo value that describes the used map raster.
property
|
Map
{
get
}
|
||
type
|
MapInfo
|
||
value
|
The map info value. | ||
inherited
|
IMapInfo.Map
|
The raw pixel value that represents missing data (i.e. void pixels).
property
|
NoData
{
get
}
|
||
type
|
float64
|
||
value
|
The nodata value. |
Remarks:
The default value is NanD (i.e. all raw pixel values are valid).
See also:
IImageReaderReturns a Path object that represents the file path this object is associated with.
property
|
PathInfo
{
get
}
|
||
type
|
Path
|
||
value
|
|
The path info. | |
inherited
|
IPathInfo.PathInfo
|
Remarks:
Objects that do not have a meaningful file path association simply return Unknown.
The pixel format of the image.
property
|
PixelFormat
{
get
}
|
||
type
|
PixelFormat
|
||
value
|
The pixel format of the image. |
Remarks:
Image processing is always performed with with four 24-bit integer channels (see Scanline). The pixel format provides additional information about the stored pixel data.
The mapping between raw pixels values and normalized image pixels.
property
|
Range
{
get
}
|
||
type
|
PixelRange
|
||
value
|
The pixel range. |
See also:
IImageReaderWidth of the image, in pixels.
property
|
Width
{
get
}
|
||
type
|
int32
|
||
value
|
|
Width of the image, in pixels. |
Remarks:
This is the number of image pixels along the X-axis, which may be different from the raster width (see MapInfo), depending on the pixel coverage.
Returns the configuration value that describes this object.
method
|
ToConfig
()
|
||
type
|
ConfigValue
|
||
returns
|
|
The configuration value. | |
inherited
|
IConfigurable.ToConfig
|
Remarks:
All configurable objects need to implement this interface. For simple types, it is preferable to delegate to ToValue.
The returned value may be of type Invalid, which means that this object in its current state cannot be described with the configuration API.
Before returning the resulting configuration value, Cache must be called on it, passing this IConfigurable object as parameter.