blendimg!

blendimg!(img1::GMTimage, img2::GMTimage; new=false, transparency=0.5)

Blend the RGB color GMTimage with the shade intensity image (normally obtained with [gdaldem]). The new argument determines if we return a new RGB image or update the color argument.

Or, blend two 2D UInt8 or 2 RGB images using transparency.

The blending method is the one explained in https://gis.stackexchange.com/questions/255537/merging-hillshade-dem-data-into-color-relief-single-geotiff-with-qgis-and-gdal/255574#255574

Returns nothing if new option has not been used or a GMTimage, either RGB or indexed depending on the options used.

Source Code

View the source code for this function.