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