<?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%3ADemosaicHQLI</id>
	<title>Function:DemosaicHQLI - 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%3ADemosaicHQLI"/>
	<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:DemosaicHQLI&amp;action=history"/>
	<updated>2026-08-15T21:00:26Z</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:DemosaicHQLI&amp;diff=1772&amp;oldid=prev</id>
		<title>Jawad: /* Example */</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:DemosaicHQLI&amp;diff=1772&amp;oldid=prev"/>
		<updated>2024-06-23T12:41:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example&lt;/span&gt;&lt;/span&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 12:41, 23 June 2024&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-l88&quot;&gt;Line 88:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 88:&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;br/&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;br/&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;//Demosaic  &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;//Demosaic  &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;cuvi::colorOperations::&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;demosaic&lt;/del&gt;(gimg,gout,CUVI_BAYER_BGGR,9);&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;cuvi::colorOperations::&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;demosaicHQLI&lt;/ins&gt;(gimg,gout,CUVI_BAYER_BGGR,9);&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;br/&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;br/&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;&amp;lt;/syntaxhighlight&amp;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;&amp;lt;/syntaxhighlight&amp;gt;&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-1771:rev-1772 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jawad</name></author>
	</entry>
	<entry>
		<id>https://wiki.cuvilib.com/index.php?title=Function:DemosaicHQLI&amp;diff=1771&amp;oldid=prev</id>
		<title>Jawad: Created page with &quot;__NOTOC__ Performs high quality demosaic using linear interpolation inspired by the following paper:  *  HIGH - QUALITY LINEAR INTERPOLATION FOR DEMOSAICING OF BAYER - PATTERNED COLOR IMAGES  *	Henrique S.Malvar, Li-wei He, and Ross Cutler  *	Microsoft Research  *	One Microsoft Way, Redmond, WA 98052, USA Supports neighborhood/filtersize of 5,7 &amp; 9.  ====Function==== {| |style=&quot;font-size:100%;&quot;| &lt;syntaxhighlight lang=&quot;cpp&quot;&gt; CuviStatus demosaicHQLI(const CuviImage&amp; src,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:DemosaicHQLI&amp;diff=1771&amp;oldid=prev"/>
		<updated>2024-06-23T12:41:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ Performs high quality demosaic using linear interpolation inspired by the following paper:  *  HIGH - QUALITY LINEAR INTERPOLATION FOR DEMOSAICING OF BAYER - PATTERNED COLOR IMAGES  *	Henrique S.Malvar, Li-wei He, and Ross Cutler  *	Microsoft Research  *	One Microsoft Way, Redmond, WA 98052, USA Supports neighborhood/filtersize of 5,7 &amp;amp; 9.  ====Function==== {| |style=&amp;quot;font-size:100%;&amp;quot;| &amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt; CuviStatus demosaicHQLI(const CuviImage&amp;amp; src,...&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;
Performs high quality demosaic using linear interpolation inspired by the following paper:&lt;br /&gt;
 *  HIGH - QUALITY LINEAR INTERPOLATION FOR DEMOSAICING OF BAYER - PATTERNED COLOR IMAGES&lt;br /&gt;
 *	Henrique S.Malvar, Li-wei He, and Ross Cutler&lt;br /&gt;
 *	Microsoft Research&lt;br /&gt;
 *	One Microsoft Way, Redmond, WA 98052, USA&lt;br /&gt;
Supports neighborhood/filtersize of 5,7 &amp;amp; 9.&lt;br /&gt;
&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;
CuviStatus demosaicHQLI(const CuviImage&amp;amp; src,&lt;br /&gt;
                       CuviImage&amp;amp; dst,&lt;br /&gt;
                       const CuviBayerSeq sensorAlignment,&lt;br /&gt;
                       int filterSize,&lt;br /&gt;
                       const CuviStream&amp;amp; stream = CuviStream());&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;
| const CuviImage&amp;amp;&lt;br /&gt;
| Input Bayer Image&lt;br /&gt;
|-&lt;br /&gt;
| dst&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Output RGB Image&lt;br /&gt;
|-&lt;br /&gt;
| sensorAlignment&lt;br /&gt;
| CuviBayerSeq&lt;br /&gt;
| Sensor alignment of the bayer image&lt;br /&gt;
|-&lt;br /&gt;
| filterSize&lt;br /&gt;
| int&lt;br /&gt;
| Neighborhood for high quality linear interpolation&lt;br /&gt;
|-&lt;br /&gt;
| stream&lt;br /&gt;
| const 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;
! Input&lt;br /&gt;
! Output&lt;br /&gt;
|-&lt;br /&gt;
| 8uC1&lt;br /&gt;
| 8uC3&lt;br /&gt;
|-&lt;br /&gt;
| 16uC1&lt;br /&gt;
| 16uC3&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Sample====&lt;br /&gt;
[[File:BayerHolidayIn.png|none|frame|Input]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
[[File:BayerHolidayOut.png|none|frame|Output]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
====Sample====&lt;br /&gt;
[[File:BayerHouseIn.png|none|frame|Input]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
[[File:BayerHouseOut.png|none|frame|Output]]&lt;br /&gt;
&amp;lt;br/&amp;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;
//Example using C&lt;br /&gt;
&lt;br /&gt;
CuviImage gimg = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_GRAYSCALE_KEEP_DEPTH), gout;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//Demosaic &lt;br /&gt;
cuvi::colorOperations::demosaic(gimg,gout,CUVI_BAYER_BGGR,9);&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>