blob: 1b9267230153ba7f09150d58df8dc7c515c1b946 (
plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="en" name="language">
<title>hclut</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link media="screen" href="../docutils-api.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="banner">
<img src="../images/gm-107x76.png" alt="GraphicMagick logo" width="107" height="76" />
<span class="title">GraphicsMagick</span>
<form action="http://www.google.com/search">
<input type="hidden" name="domains" value="www.graphicsmagick.org" />
<input type="hidden" name="sitesearch" value="www.graphicsmagick.org" />
<span class="nowrap"><input type="text" name="q" size="25" maxlength="255" /> <input type="submit" name="sa" value="Search" /></span>
</form>
</div>
<div class="navmenu">
<ul>
<li><a href="../index.html">Home</a></li>
<li><a href="../project.html">Project</a></li>
<li><a href="../download.html">Download</a></li>
<li><a href="../README.html">Install</a></li>
<li><a href="../Hg.html">Source</a></li>
<li><a href="../NEWS.html">News</a> </li>
<li><a href="../utilities.html">Utilities</a></li>
<li><a href="../programming.html">Programming</a></li>
<li><a href="../reference.html">Reference</a></li>
</ul>
</div>
<div class="document" id="hclut">
<h1 class="title">hclut</h1>
<p class="subtitle" id="apply-hald-clut-to-image">Apply Hald CLUT to image</p>
<div class="contents topic" id="contents">
<p class="topic-title">Contents</p>
<ul class="simple">
<li><p><a class="reference internal" href="#haldclutimage" id="id1">HaldClutImage</a></p></li>
</ul>
</div>
<div class="section" id="haldclutimage">
<h1><a class="toc-backref" href="#id1">HaldClutImage</a></h1>
<div class="section" id="synopsis">
<h2>Synopsis</h2>
<pre class="literal-block">MagickPassFail HaldClutImage( <a class="reference external" href="../api/types.html#image">Image</a> *image, const <a class="reference external" href="../api/types.html#image">Image</a> *clut );</pre>
</div>
<div class="section" id="description">
<h2>Description</h2>
<p>The HaldClutImage() method apply a color lookup table (Hald CLUT) to the
image. The fundamental principle of the Hald CLUT algorithm is that
application of an identity CLUT causes no change to the input image,
but an identity CLUT image which has had its colors transformed in
some way (e.g. in Adobe Photoshop) may be used to implement an identical
transform on any other image.</p>
<p>The minimum CLUT level is 2, and the maximum depends on available memory
(largest successfully tested is 24). A CLUT image is required to have equal
width and height. A CLUT of level 8 is an image of dimension 512x512, a CLUT
of level 16 is an image of dimension 4096x4096. Interpolation is used so
extremely large CLUT images are not required.</p>
<p>GraphicsMagick provides an 'identity' coder which may be used to generate
identity HLUTs. For example, reading from "identity:8" creates an identity
CLUT of order 8.</p>
<p>The Hald CLUT algorithm has been developed by Eskil Steenberg as described
at <a class="reference external" href="http://www.quelsolaar.com/technology/clut.html">http://www.quelsolaar.com/technology/clut.html</a>, and was adapted for
GraphicsMagick by Clément Follet with support from Cédric Lejeune of
Workflowers.</p>
<p>The format of the HaldClutImage method is:</p>
<pre class="literal-block">MagickPassFail HaldClutImage( <a class="reference external" href="../api/types.html#image">Image</a> *image, const <a class="reference external" href="../api/types.html#image">Image</a> *clut );</pre>
<p>A description of each parameter follows:</p>
<dl class="simple">
<dt>image:</dt>
<dd><p>The image.</p>
</dd>
<dt>clut:</dt>
<dd><p>The color lookup table image</p>
</dd>
</dl>
</div>
</div>
</div>
<hr class="docutils">
<div class="document">
<p><a href="../Copyright.html">Copyright</a> © GraphicsMagick Group 2002 - 2023<!--SPONSOR_LOGO--></p>
</div>
</div>
</body>
</html>
|