<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cuvilib.com/index.php?action=history&amp;feed=atom&amp;title=Function%3ABlackGammaLUT</id>
	<title>Function:BlackGammaLUT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cuvilib.com/index.php?action=history&amp;feed=atom&amp;title=Function%3ABlackGammaLUT"/>
	<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:BlackGammaLUT&amp;action=history"/>
	<updated>2026-08-12T02:01:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.cuvilib.com/index.php?title=Function:BlackGammaLUT&amp;diff=1752&amp;oldid=prev</id>
		<title>Jawad at 08:31, 31 October 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:BlackGammaLUT&amp;diff=1752&amp;oldid=prev"/>
		<updated>2022-10-31T08:31:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:31, 31 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__NOTOC__&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Remaps image values according to look up tables but instead of a single table like in [[LUT|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Function:&lt;/del&gt;LUT]], the blackGammaLUT takes separate tables for each channel.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Remaps image values according to look up tables but instead of a single table like in [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Function:&lt;/ins&gt;LUT|LUT]], the blackGammaLUT takes separate tables for each channel.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Function====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Function====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key cuvilib_wiki:diff::1.12:old-1751:rev-1752 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jawad</name></author>
	</entry>
	<entry>
		<id>https://wiki.cuvilib.com/index.php?title=Function:BlackGammaLUT&amp;diff=1751&amp;oldid=prev</id>
		<title>Jawad: Created page with &quot;__NOTOC__ Remaps image values according to look up tables but instead of a single table like in Function:LUT, the blackGammaLUT takes separate tables for each channel. ====Function==== {| |style=&quot;font-size:100%;&quot;| &lt;syntaxhighlight lang=&quot;cpp&quot;&gt;  CuviStatus blackGammaLUT(const CuviImage&amp; src,                          CuviImage&amp; dst,                          Cuvi16u* redLUT,                          Cuvi16u* greenLUT,                          Cuvi16u* blueLUT,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:BlackGammaLUT&amp;diff=1751&amp;oldid=prev"/>
		<updated>2022-10-31T08:30:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ Remaps image values according to look up tables but instead of a single table like in &lt;a href=&quot;/index.php?title=LUT&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;LUT (page does not exist)&quot;&gt;Function:LUT&lt;/a&gt;, the blackGammaLUT takes separate tables for each channel. ====Function==== {| |style=&amp;quot;font-size:100%;&amp;quot;| &amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;  CuviStatus blackGammaLUT(const CuviImage&amp;amp; src,                          CuviImage&amp;amp; dst,                          Cuvi16u* redLUT,                          Cuvi16u* greenLUT,                          Cuvi16u* blueLUT,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
Remaps image values according to look up tables but instead of a single table like in [[LUT|Function:LUT]], the blackGammaLUT takes separate tables for each channel.&lt;br /&gt;
====Function====&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;font-size:100%;&amp;quot;|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CuviStatus blackGammaLUT(const CuviImage&amp;amp; src,&lt;br /&gt;
                         CuviImage&amp;amp; dst,&lt;br /&gt;
                         Cuvi16u* redLUT,&lt;br /&gt;
                         Cuvi16u* greenLUT,&lt;br /&gt;
                         Cuvi16u* blueLUT, &lt;br /&gt;
                         const CuviStream&amp;amp; stream = CuviStream());&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Parameters====&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;font-size:75%;&amp;quot;|&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name	&lt;br /&gt;
! Type	&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| src&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Input Image&lt;br /&gt;
|-&lt;br /&gt;
| dst&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Resultant Image&lt;br /&gt;
|-&lt;br /&gt;
| redLUT&lt;br /&gt;
| Cuvi16u*&lt;br /&gt;
| The look-up table for red channel&lt;br /&gt;
|-&lt;br /&gt;
| greenLUT&lt;br /&gt;
| Cuvi16u*&lt;br /&gt;
| The look-up table for green channel&lt;br /&gt;
|-&lt;br /&gt;
| blueLUT&lt;br /&gt;
| Cuvi16u*&lt;br /&gt;
| The look-up table for blue channel&lt;br /&gt;
|-&lt;br /&gt;
| stream &lt;br /&gt;
| CuviStream&amp;amp;&lt;br /&gt;
| GPU stream ID for execution&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Image Type Support====&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;font-size:75%;&amp;quot;|&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Type&lt;br /&gt;
|-&lt;br /&gt;
| 8uC3&lt;br /&gt;
|-&lt;br /&gt;
| 16uC3&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Example====&lt;br /&gt;
{|&lt;br /&gt;
|style=&amp;quot;font-size:100%;&amp;quot;|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CuviImage input = cuvi::io::loadImage(path), output;&lt;br /&gt;
&lt;br /&gt;
//blackGammaLUT Parameters&lt;br /&gt;
	const int mappingSize = 256;&lt;br /&gt;
	Cuvi16u redLUT[mappingSize], greenLUT[mappingSize], blueLUT[mappingSize];&lt;br /&gt;
	for (int i = 0; i &amp;lt; mappingSize; i++) {&lt;br /&gt;
		redLUT[i] = 255 - i;&lt;br /&gt;
		greenLUT[i] =  i;&lt;br /&gt;
		blueLUT[i] =  i;&lt;br /&gt;
	}&lt;br /&gt;
//blackGammaLUT&lt;br /&gt;
CuviStatus status = cuvi::colorOperations::blackGammaLUT(input,&lt;br /&gt;
                                                         output,&lt;br /&gt;
                                                         redLUT,&lt;br /&gt;
                                                         greenLUT,&lt;br /&gt;
                                                         blueLUT);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jawad</name></author>
	</entry>
</feed>