2
0
mirror of https://github.com/boostorg/gil.git synced 2026-01-24 18:02:17 +00:00
Files
gil/develop/doc/html/reference/group___channel_invert_algorithm.html

85 lines
4.2 KiB
HTML

<!-- Copyright 2008 Lubomir Bourdev and Hailin Jin
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
-->
<!--
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<TITLE>channel_invert</TITLE>
<META HTTP-EQUIV="content-type" CONTENT="text/html;charset=ISO-8859-1"/>
<link type="text/css" rel="stylesheet" href="../_static/style.css">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div class="header">
<table border="0" cellpadding="7" cellspacing="0" width="100%" summary="header">
<tr>
<td valign="top" width="300">
<h3><a href="../index.html"><img
alt="Boost GIL" src="../_static/gil.png" border="0"></a></h3>
</td>
<td >
<h1 align="center"><a href="../index.html"></a></h1>
</td>
<td>
</td>
</tr>
</table>
</div>
<hr/>
<table border="0" cellspacing="0" cellpadding="0" style='width: 100%; margin: 0; padding: 0'><tr>
<td width="100%" valign="top" style='padding-left: 10px; padding-right: 10px; padding-bottom: 10px'>
<div class="qindex"><a class="qindex" href="index.html">Modules</a>
| <a class="qindex" href="classes.html">Alphabetical List</a>
| <a class="qindex" href="annotated.html">Class List</a>
</div>
<!-- End Header -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">channel_invert<div class="ingroups"><a class="el" href="group___channel_algorithm.html">Algorithms and Utility Functions</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Returns the inverse of a channel. result = max_value - x + min_value.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gabbbc7b27d9f61ff45cf5ea7ac21051f5"><td class="memTemplParams" colspan="2"><a class="anchor" id="gabbbc7b27d9f61ff45cf5ea7ac21051f5"></a>
template&lt;typename Channel &gt; </td></tr>
<tr class="memitem:gabbbc7b27d9f61ff45cf5ea7ac21051f5"><td class="memTemplItemLeft" align="right" valign="top">channel_traits&lt; Channel &gt;<br class="typebreak"/>
::value_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group___channel_invert_algorithm.html#gabbbc7b27d9f61ff45cf5ea7ac21051f5">channel_invert</a> (Channel x)</td></tr>
<tr class="memdesc:gabbbc7b27d9f61ff45cf5ea7ac21051f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default implementation. Provide overloads for performance. <br/></td></tr>
<tr class="separator:gabbbc7b27d9f61ff45cf5ea7ac21051f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Returns the inverse of a channel. result = max_value - x + min_value. </p>
<p>Example: </p>
<div class="fragment"><div class="line"><span class="comment">// bits8 == uint8_t == unsigned char</span></div>
<div class="line">bits8 x=255;</div>
<div class="line">bits8 inv = <a class="code" href="group___channel_invert_algorithm.html#gabbbc7b27d9f61ff45cf5ea7ac21051f5">channel_invert</a>(x);</div>
<div class="line">assert(inv == 0);</div>
</div><!-- fragment --> </div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 26 2018 16:26:16 for Generic Image Library by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>