Difference between revisions of "Function:Subtract"
From CUVI Wiki
(Created page with "__NOTOC__ Subtracts pixel values of second image from the first image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus subtract(CuviImage* s...") |
|||
Line 70: | Line 70: | ||
|} | |} | ||
===Sample=== | |||
{| | |||
|- | |||
|[[File:Addin1.jpg|frame|First Image]] | |||
|[[File:Addin2.jpg|frame|Second Image]] | |||
|- | |||
|[[File:SubOut.jpg|frame|Result]] | |||
|} | |||
Revision as of 19:17, 2 May 2012
Subtracts pixel values of second image from the first image
Function
|
Parameters
Name | Type | Description |
---|---|---|
srcImage1 | CuviImage* | First Image |
srcImage2 | CuviImage* | Second Image |
dstImage | CuviImage* | Resultant Image |
stream | CuviStream* | GPU stream ID for execution |
Image Type Support
Input 1 | Input 2 | Output |
---|---|---|
8uC1 | 8uC1 | 8uC1 |
8uC3 | 8uC3 | 8uC3 |
16uC1 | 16uC1 | 16uC1 |
16uC3 | 16uC3 | 16uC3 |
32fC1 | 32fC1 | 32fC1 |
32fC3 | 32fC3 | 32fC3 |
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
|