<?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%3AInRange</id>
	<title>Function:InRange - 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%3AInRange"/>
	<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:InRange&amp;action=history"/>
	<updated>2026-08-16T00:48:48Z</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:InRange&amp;diff=1754&amp;oldid=prev</id>
		<title>Jawad: Created page with &quot;__NOTOC__ Checks if image values lie between the range defined by two values and returns a boolean image output. The output image is always 8-bit with either 0 or 255 as an pixel value.  ====Function==== {| |style=&quot;font-size:100%;&quot;| &lt;syntaxhighlight lang=&quot;cpp&quot;&gt;  CuviStatus inRange(const CuviImage&amp; src,                          const Cuvi32f rangeMin,                          const Cuvi32f rangeMax,                          const CuviStream&amp; stream = CuviStream());  &lt;/syn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cuvilib.com/index.php?title=Function:InRange&amp;diff=1754&amp;oldid=prev"/>
		<updated>2022-10-31T08:46:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ Checks if image values lie between the range defined by two values and returns a boolean image output. The output image is always 8-bit with either 0 or 255 as an pixel value.  ====Function==== {| |style=&amp;quot;font-size:100%;&amp;quot;| &amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;  CuviStatus inRange(const CuviImage&amp;amp; src,                          const Cuvi32f rangeMin,                          const Cuvi32f rangeMax,                          const CuviStream&amp;amp; stream = CuviStream());  &amp;lt;/syn...&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;
Checks if image values lie between the range defined by two values and returns a boolean image output. The output image is always 8-bit with either 0 or 255 as an pixel value.&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;
&lt;br /&gt;
CuviStatus inRange(const CuviImage&amp;amp; src,&lt;br /&gt;
                         const Cuvi32f rangeMin,&lt;br /&gt;
                         const Cuvi32f rangeMax,&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;
| rangeMin&lt;br /&gt;
| Cuvi32f&lt;br /&gt;
| Starting value of range&lt;br /&gt;
|-&lt;br /&gt;
| rangeMax&lt;br /&gt;
| Cuvi32f&lt;br /&gt;
| Ending value of range&lt;br /&gt;
|-&lt;br /&gt;
| dst&lt;br /&gt;
| CuviImage&amp;amp;&lt;br /&gt;
| Resultant Image&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;
| 8uC1&lt;br /&gt;
|-&lt;br /&gt;
| 8uC3&lt;br /&gt;
|-&lt;br /&gt;
| 16uC1&lt;br /&gt;
|-&lt;br /&gt;
| 16uC3&lt;br /&gt;
|-&lt;br /&gt;
| 32FC1&lt;br /&gt;
|-&lt;br /&gt;
| 32FC3&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;
&lt;br /&gt;
CuviStatus status = cuvi::arithmeticLogical::inRange(input,&lt;br /&gt;
                                                     67,&lt;br /&gt;
                                                     128,&lt;br /&gt;
                                                     output);&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>