Difference between revisions of "Function:AbsDiff"
From CUVI Wiki
(Created page with "__NOTOC__ Adds two images ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus absDiff(const CuviImage& src1, const CuviImage...") |
|||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Computes absolute difference between pixels of 2 images. Each channel is processed individually. | |||
===Function=== | ===Function=== | ||
{| | {| | ||
Revision as of 11:12, 12 June 2014
Computes absolute difference between pixels of 2 images. Each channel is processed individually.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src1 | const CuviImage& | First Input Image |
| src2 | const CuviImage& | Second Input Image |
| dst | CuviImage& | Resultant Image |
| stream | CuviStream& | GPU stream ID for execution |
Image Type Support
| Input 1 | Input 2 | Output |
|---|---|---|
| 8u | 8u | 8u |
| 16u | 16u | 16u |
| 32f | 32f | 32f |
| 8u | 8u | 16u |
| 8u | 8u | 32f |
| 16u | 16u | 32f |
| 8u | 16u | 16u |
| 16u | 8u | 16u |
| 8u | 32f | 32f |
| 32f | 8u | 32f |
| 8u | 16u | 32f |
| 16u | 8u | 32f |
| 16u | 32f | 32f |
| 32f | 16u | 32f |
Example
|