Emboss
Function
This function is super for those late-80's "Hey, look what my Mac
can do"-effects. You control the gain and light direction. Note that
the Emboss function will convert your image into a BWA image since
there is no color information. If you do an extreme gain, you may
start to see terracing on your image. Insert a Bytes
command before the Emboss and boost your image up to 2 bytes per
channel to correct this. You can also get cool patterns by putting a Bytes
command to 2 bytes, a Blur,
and then the Emboss.
We have put the elevation to 30 because it makes the median grey value
to be .5.
Parameters
|
Type
|
Defaults
|
Function
|
gain |
float
|
10 |
The amount of emboss. |
azimuth |
float
|
45 |
The direction of the light.
0 and 360 means from the right side of the image, 90 means the top,
etc |
elevation |
float
|
30 |
This is the "height" of the light. 0 means parallel to
the image, 90 means the same axis as a line from your nose to the
image. Assuming you are facing the image, I guess.
|
Synopsis
image Emboss( image,
float gain,
float azimuth,
float elevation
);
Script
image = Emboss( image, gain, azimuth, elevation );
Command Line
shake -emboss gain azimuth elevation
|