Difference between revisions of "Function:Subtract"
From CUVI Wiki
(→Sample) |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Subtracts pixel values of second image from the first image | Subtracts pixel values of second image from the first image | ||
===Function=== | ====Function==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus subtract(const CuviImage& src1, | CuviStatus subtract(const CuviImage& src1, | ||
Line 11: | Line 11: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
====Parameters==== | |||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 34: | Line 36: | ||
| 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 69: | Line 72: | ||
| 32fC3 | | 32fC3 | ||
|} | |} | ||
|} | |} | ||
====Sample==== | |||
[[File:Addin1.jpg|none|frame|First Image]] | |||
<br/> | |||
[[File:Addin2.jpg|none|frame|Second Image]] | |||
<br/> | |||
[[File:SubOut.jpg|none|frame|Result]] | |||
<br/> | |||
===Example=== | ====Example==== | ||
{| | {| | ||
|style="font-size: | |style="font-size:100%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Latest revision as of 20:30, 18 October 2022
Subtracts pixel values of second image from the first image
Function
|
Parameters
|
Image Type Support
|
Sample
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Example
|