Difference between revisions of "Function:Sum"
From CUVI Wiki
(Created page with "__NOTOC__ Computes the sum of all pixel values in the image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus sum(CuviImage* image, ...") |
|||
| Line 49: | Line 49: | ||
{| | {| | ||
|- | |- | ||
|[[File: | |[[File:Sum.PNG]] | ||
|} | |} | ||
Revision as of 06:36, 8 May 2012
Computes the sum of all pixel values in the image
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| image | CuviImage* | Input Image |
| sum | Cuvi64f* | Sum of all pixel values of the image |
| stream | CuviStream* | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | Cuvi64f single value |
| 8uC3 | Cuvi64f three values |
Sample
Example
|