Skip to content

Commit

Permalink
Document Image#distortion_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Sep 26, 2005
1 parent c2420ba commit 28818fe
Showing 1 changed file with 54 additions and 32 deletions.
86 changes: 54 additions & 32 deletions doc/image1.html
Expand Up @@ -155,13 +155,13 @@ <h3>instance methods</h3>
<li><a href="#composite">composite</a></li>

<li><a href="#composite_bang">composite!</a></li>

<li><a href="#composite_affine">composite_affine</a></li>
</ul>
</div>

<div class="toccol">
<ul>
<li><a href="#composite_affine">composite_affine</a></li>

<li><a href=
"#compress_colormap_bang">compress_colormap!</a></li>

Expand All @@ -187,6 +187,8 @@ <h3>instance methods</h3>

<li><a href="#display">display</a></li>

<li><a href="#distortion_channel">distortion_channel</a></li>

<li><a href="#dup">dup</a></li>

<li><a href="#each_profile">each_profile</a></li>
Expand Down Expand Up @@ -903,8 +905,7 @@ <h4>Returns</h4>
<h3 id="bilevel_channel">bilevel_channel</h3>

<p><span class="arg">image</span>.bilevel_channel(<span class=
"arg">threshold</span>, [<span class="arg">channel</span>[,
<span class="arg">channel</span>...]] = <em>aNewImage</em></p>
"arg">threshold</span> [,<span class="arg">channel...</span>]) = <em>aNewImage</em></p>
</div>

<div class="desc">
Expand Down Expand Up @@ -963,8 +964,7 @@ <h3 id="blur_channel">blur_channel</h3>

<p><span class="arg">image</span>.blur_channel(<span class=
"arg">radius=0.0</span>, <span class=
"arg">sigma=1.0</span><span class="arg">[, channel[,
channel...]]</span>) -&gt; <em>anImage</em></p>
"arg">sigma=1.0</span><span class="arg">[, channel...]]</span>) -&gt; <em>anImage</em></p>
</div>

<div class="desc">
Expand Down Expand Up @@ -1294,7 +1294,7 @@ <h4>Magick API</h4>
<h3 id="channel_depth">channel_depth</h3>

<p><span class="arg">image</span>.channel_depth([<span class=
"arg">channel</span> [, <span class="arg">channel</span>]...])
"arg">channel</span>...])
-&gt; <em>aNumeric</em></p>
</div>

Expand All @@ -1307,7 +1307,7 @@ <h4>Description</h4>
<h4>Arguments</h4>

<dl>
<dt>[channel [, channel...]]</dt>
<dt>channel...</dt>

<dd>Zero or more <a href=
"constants.html#ChannelType">ChannelType</a> constants. If no
Expand All @@ -1332,7 +1332,7 @@ <h4>Magick API</h4>
<h3 id="channel_extrema">channel_extrema</h3>

<p><span class="arg">image</span>.channel_extrema([<span class=
"arg">channel</span> [, <span class="arg">channel</span>]...])
"arg">channel</span>...])
-&gt; <em>[aNumeric, aNumeric]</em></p>
</div>

Expand All @@ -1345,7 +1345,7 @@ <h4>Description</h4>
<h4>Arguments</h4>

<dl>
<dt>[channel [, channel...]]</dt>
<dt>channel...</dt>

<dd>Zero or more <a href=
"constants.html#ChannelType">ChannelType</a> values. If no
Expand Down Expand Up @@ -1375,7 +1375,7 @@ <h4>Magick API</h4>
<h3 id="channel_mean">channel_mean</h3>

<p><span class="arg">image</span>.channel_mean([<span class=
"arg">channel</span> [, <span class="arg">channel</span>]...])
"arg">channel</span>...])
-&gt; <em>[aNumeric, aNumeric]</em></p>
</div>

Expand All @@ -1388,7 +1388,7 @@ <h4>Description</h4>
<h4>Arguments</h4>

<dl>
<dt>[channel [, channel...]]</dt>
<dt>channel...</dt>

<dd>Zero or more <a href=
"constants.html#ChannelType">ChannelType</a> values. If no
Expand Down Expand Up @@ -1914,24 +1914,10 @@ <h4>Arguments</h4>
<dt>metric</dt>

<dd>
The desired distortion metric. One of the following
constants:

<ul style=
"list-style-type: none; list-style-image: none; list-style-position: outside;">
<li>MeanAbsoluteErrorMetric</li>

<li>MeanSquaredErrorMetric</li>

<li>PeakAbsoluteErrorMetric</li>

<li>PeakSignalToNoiseRatioMetric</li>

<li>RootMeanSquaredErrorMetric</li>
</ul>
The desired distortion metric. A <a href="constants.html#MetricType">MetricType</a> value.
</dd>

<dt>[channel [, channel...]]</dt>
<dt>channel...</dt>

<dd>Zero or more <a href=
"constants.html##ChannelType">ChannelType</a> values. All the
Expand All @@ -1949,7 +1935,8 @@ <h4>Returns</h4>
<h4>See also</h4>

<p><a href="#difference">difference</a>, <a href=
"#spaceship">&lt;=&gt;</a></p>
"#spaceship">&lt;=&gt;</a>,
<a href="#distortion_channel">distortion_channel</a></p>

<h4>Magick API</h4>

Expand Down Expand Up @@ -2342,9 +2329,8 @@ <h4>Note</h4>
<h3 id="convolve_channel">convolve_channel</h3>

<p><span class="arg">image</span>.convolve_channel(<span class=
"arg">order</span>, <span class="arg">kernel</span>[,
<span class="arg">channel</span>[, <span class=
"arg">channel</span>...]]) -&gt; <em>anImage</em></p>
"arg">order</span>, <span class="arg">kernel</span> [,
<span class="arg">channel</span>...]) -&gt; <em>anImage</em></p>
</div>

<div class="desc">
Expand Down Expand Up @@ -2873,6 +2859,42 @@ <h4>Magick API</h4>
<p>DisplayImages</p>
</div>

<div class="sig">
<h3 id="distortion_channel">distortion_channel</h3>
<p><span class="arg">image</span>.distortion_channel(<span class="arg">reconstructed_image</span>, <span class="arg">metric</span>[, <span class="arg">channel</span>...]) -&gt; <em>aFloat</em></p>
</div>

<div class="desc">
<h4>Description</h4>
<p class="imquote">(C)ompares one or more image channels of an image to a reconstructed image and returns the specified distortion metric.</p>
<h4>Arguments</h4>
<dl>
<dt>reconstructed_image</dt>
<dd>Either an imagelist or an image. If an imagelist, uses
the current image.</dd>

<dt>metric</dt>

<dd>
The desired distortion metric. A <a href="constants.html#MetricType">MetricType</a> value.
</dd>

<dt>channel...</dt>

<dd>Zero or more <a href=
"constants.html##ChannelType">ChannelType</a> values. All the
specified channels contribute to the comparison and the
distortion value. If no channels are specified, compares all
channels.</dd>
</dl>
<h4>Returns</h4>
<h4>Magick API</h4>
<p>GetImageChannelDistortion (available in ImageMagick 6.2.0)</p>
<h4>See also</h4>
<p><a href="#compare_channel">compare_channel</a>,
<a href="#difference">difference</a></p>
</div>

<div class="sig">
<h3 id="dup">dup</h3>

Expand Down

0 comments on commit 28818fe

Please sign in to comment.