<?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%3AFpn</id>
	<title>Function:Fpn - 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%3AFpn"/>
	<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:Fpn&amp;action=history"/>
	<updated>2026-08-12T04:59:25Z</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:Fpn&amp;diff=1758&amp;oldid=prev</id>
		<title>Jawad at 06:58, 7 November 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:Fpn&amp;diff=1758&amp;oldid=prev"/>
		<updated>2022-11-07T06:58:35Z</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 06:58, 7 November 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;Removes fixed point camera noise from the image using black image. Ideally the black image taken from camera with closed shutter should be all 0s. Any value above that is considered a black noise and can be removed via the formula: outputImage[i] = max(0, inputImage[i] - blackImage[i]);&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;Removes fixed point camera noise from the image using black image. Ideally the black image taken from camera with closed shutter should be all 0s. Any value above that is considered a black noise and can be removed via the formula: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;outputImage[i] = max(0, inputImage[i] - blackImage[i])&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&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;====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-1757:rev-1758 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jawad</name></author>
	</entry>
	<entry>
		<id>https://wiki.cuvilib.com/index.php?title=Function:Fpn&amp;diff=1757&amp;oldid=prev</id>
		<title>Jawad: Created page with &quot;__NOTOC__ Removes fixed point camera noise from the image using black image. Ideally the black image taken from camera with closed shutter should be all 0s. Any value above that is considered a black noise and can be removed via the formula: outputImage[i] = max(0, inputImage[i] - blackImage[i]); ====Function==== {| |style=&quot;font-size:100%;&quot;| &lt;syntaxhighlight lang=&quot;cpp&quot;&gt; CuviStatus fpn(CuviImage &amp;output,                const CuviImage &amp;input,                const CuviImag...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:Fpn&amp;diff=1757&amp;oldid=prev"/>
		<updated>2022-11-07T06:58:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ Removes fixed point camera noise from the image using black image. Ideally the black image taken from camera with closed shutter should be all 0s. Any value above that is considered a black noise and can be removed via the formula: outputImage[i] = max(0, inputImage[i] - blackImage[i]); ====Function==== {| |style=&amp;quot;font-size:100%;&amp;quot;| &amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt; CuviStatus fpn(CuviImage &amp;amp;output,                const CuviImage &amp;amp;input,                const CuviImag...&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;
Removes fixed point camera noise from the image using black image. Ideally the black image taken from camera with closed shutter should be all 0s. Any value above that is considered a black noise and can be removed via the formula: outputImage[i] = max(0, inputImage[i] - blackImage[i]);&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 fpn(CuviImage &amp;amp;output,&lt;br /&gt;
               const CuviImage &amp;amp;input,&lt;br /&gt;
               const CuviImage &amp;amp;blackImage)&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;
| output&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Resultant Image&lt;br /&gt;
|-&lt;br /&gt;
| input&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Source Image&lt;br /&gt;
|-&lt;br /&gt;
| blackImage&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Black image from camera with closed shutter&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;
! output&lt;br /&gt;
! input&lt;br /&gt;
! blackImage&lt;br /&gt;
|-&lt;br /&gt;
| 8uC1&lt;br /&gt;
| 8uC1&lt;br /&gt;
| 8uC1&lt;br /&gt;
|-&lt;br /&gt;
| 16uC1&lt;br /&gt;
| 16uC1&lt;br /&gt;
| 16uC1&lt;br /&gt;
|-&lt;br /&gt;
| 8uC3&lt;br /&gt;
| 8uC3&lt;br /&gt;
| 8uC3&lt;br /&gt;
|-&lt;br /&gt;
| 16uC3&lt;br /&gt;
| 16uC3&lt;br /&gt;
| 16uC3&lt;br /&gt;
|}&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);&lt;br /&gt;
CuviImage blackImage= cuvi::io::loadImage(path);&lt;br /&gt;
CuviImage output;&lt;br /&gt;
&lt;br /&gt;
//fpn&lt;br /&gt;
cuvi::colorOperations::fpn(output, input, blackImage);&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>