Image embossing
Created on 2023-02-09T05:05:59-06:00
Use a convolution kernel.
Typical embossing kernels are something like this:
0 0 0 +1 0 -1 0 0 0
To change the direction of an embossment you just change which parts of the kernel are positive and negative.
To soften an emboss you can use a fractional component. +0.5 and -0.5 will result in a softer image than +1 and -1.