Loading [MathJax]/extensions/tex2jax.js
Python Script utilsImageOverlay

Aim of script

The script calculates an overlay of a color image and a grey scale image.

General description

The script calculates an overlay of a color image and a grey scale image. First, it is checked whether the color image is a palette image. If this is the case, then the image is temporarily converted to a rgb image (temp_RGB.tif).The color image is transformed from the RGB color space to the IHS color space, then the combination of the images is done in the intensity channel. Finally, the result is transformed back into the RGB color space.

The following table contains a list of all involved modules and their default storage location:

Modules addressed in utilsImageOverlay
OPALS Module Default Directory Comments
GDAL script ptc2rgb.py .\ used to convert a palette image to RGB
Module Algebra .\ used to calculate the combined image

Parameter description

-colFile raster file containing a (palette) color image
Type : Path
Remark : mandatory
-shdFile raster file containing a hill shading (gray image)
Type : Path
Remark : mandatory
-outFile raster file containing a combination of colFile and shdFile)
Type : Path
Remark : mandatory
Logging Options
Settings concerning the verbosity level of logging.
-fileLogLevel Log level in the logfile
Type : LogLevel
Remark : optional, default: info
-screenLogLevel Log level on screen
Type : LogLevel
Remark : optional, default: info
-logger Logger
Type : Logger
Remark : optional
Description: Logger is usually provided by the opals framework.The user may provide their own logger object, but it has to function in the same way as the opals Logger.

Examples

Example 1

opalsImport -inFile flyover.laz flyover_breaklines.shp -tileSize 100
opalsDTM -inFile flyover.odm -gridSize 0.25 -neigh 12 -searchrad 1.25
opalsZColor -inFile flyover_dtm.tif
opalsShade -inFile flyover_dtm.tif
opals utilsImageOverlay.py -colFile flyover_dtm_zco.tif -shdFile flyover_dtm_shd.tif -outFile flyover_dtm_mix.tif
opalsImport is the executable file of Module Import
Definition: ModuleExecutables.hpp:113
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
opalsDTM is the executable file of Module DTM
Definition: ModuleExecutables.hpp:48
opalsShade is the executable file of Module Shade
Definition: ModuleExecutables.hpp:198