Difference between revisions of "Function:Min"

From CUVI Wiki
Line 3: Line 3:
===Function===
===Function===
{|
{|
|style="font-size:150%;"|
|style="font-size:100%;"|
<syntaxhighlight lang="C">
<pre>
<pre>
CuviStatus min(const CuviImage& src,
CuviStatus min(const CuviImage& src,
Line 9: Line 10:
               const CuviStream& stream = CuviStream());
               const CuviStream& stream = CuviStream());


</pre>
<syntaxhighlight>
|}
|}



Revision as of 18:32, 19 October 2022

Computes the minimum of image pixel values

Function

<syntaxhighlight lang="C">

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

<syntaxhighlight>

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