Difference between revisions of "Function:Min"

From CUVI Wiki
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
Computes the minimum of image pixel values
Computes the minimum of image pixel values
===Function===
====Function====
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<pre>
<syntaxhighlight lang="C">
CuviStatus min(const CuviImage& src,
CuviStatus min(const CuviImage& src,
               CuviScalar& minValue,
               CuviScalar& minValue,
               const CuviStream& stream = CuviStream());
               const CuviStream& stream = CuviStream());


</pre>
</syntaxhighlight>
|}
|}


===Parameters===
====Parameters====
 
{|
|style="font-size:75%;"|
{|class="wikitable"
{|class="wikitable"
|-
|-
Line 31: Line 32:
| const CuviStream&
| const CuviStream&
| GPU stream ID for execution
| GPU stream ID for execution
 
|}
|}
|}


===Image Type Support===
====Image Type Support====
 
{|
|style="font-size:75%;"|
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 58: Line 60:
| 32fC3
| 32fC3
| CuviScalar
| CuviScalar
|}
|}
|}


===Sample===
====Sample====
{|
{|
|-
|-
|[[File:Min.PNG]]
|[[File:Min.PNG]]
|}
|}


===Example===
===Example===

Latest revision as of 18:33, 19 October 2022

Computes the minimum of image pixel values

Function

CuviStatus min(const CuviImage& src,
               CuviScalar& minValue,
               const CuviStream& stream = CuviStream());

Parameters

Name Type Description
src const CuviImage& Input Image
minValue CuviScalar& Minimum pixel value in the image
stream const CuviStream& GPU stream ID for execution

Image Type Support

Input Output
8uC1 CuviScalar
8uC3 CuviScalar
16uC1 CuviScalar
16uC3 CuviScalar
32fC1 CuviScalar
32fC3 CuviScalar

Sample

Error creating thumbnail: Unable to save thumbnail to destination

Example