-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
executable file
·57 lines (28 loc) · 2.22 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
NAME
hmap v0.1 -- Command line tool for generating heightmaps and pseudo-3D images.
SYNOPSIS
hmap input-file [input-options] output-file [output-options]
OVERVIEW
The hmap program is a member of the heightmap tools. You can use it to process images, and to produce heightmap outputs in the form of grayscale images.
USAGE
This command processes the input image and generates a grayscale output and an histogram output.
> hmap.exe -input brickwall.jpg
You can also use the short forms of "input" and "output" parameters:
> hmap.exe -in brickwall.jpg -out graywall.png
To acquire vivid tones of gray in the output, the "-contrast" parameter can be used. This command increases the contrast between gray tones by 50%:
> hmap.exe -in rope.jpg -out ropecont.png -contrast 0.5
To set a different filename to the histogram output, you can use the "-hist" command line option:
> hmap.exe -in brickwall.jpg -out graywall.png -contrast 10 -hist hist4.png
[TIP]: The histogram output can be useful when you want to observe the changes in the frequency distribution of colors (in the output image).
And this one applies some "box blur" to the image:
> hmap.exe -in brickwall.jpg -out blurwall -blur 2.5
[TIP]: The "box blur" can be useful when you want to emphasize the edges in the output image.
If you want to get rid of the noise-like artifacts, you can use the "gaussian blur":
> hmap.exe -in brickwall.jpg -out blurwall -gauss 2.25
[TIP] The "gaussian blur" can be useful when you need a smoother output.
The former "-mono" parameter was not very useful. In order to keep the mid-tones of gray in the output; you can use the "-mono" parameter in conjunction with
the "-blend" parameter ("mono-blending" method). By lowering the "blend" opacity, more vivid semitones can be acquired in the output.
> hmap.exe -input brickwall.jpg -mono 136 -blend 0.25
[TIP] If you need to combine "mono-blending" with other filters (like "contrast", "blur" or "gauss"), set lower values for them to keep the chromatic semitones in effect.
You can turn the "-invert" parameter on/off to reverse the colors of pixels in the output image. This parameter is turned off by default.
> hmap.exe -input rope.jpg -invert on