Difference between revisions of "Function:Pow"
From CUVI Wiki
(Created page with "__NOTOC__ Raises each pixel of the image to the specified power. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus pow(const CuviImage& src...") |
|||
| Line 72: | Line 72: | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
// | //Read an image from the disk | ||
CuviImage input = cuvi::io::loadImage(path); | CuviImage input = cuvi::io::loadImage(path); | ||
CuviImage output; | CuviImage output; | ||
Revision as of 06:02, 18 April 2013
Raises each pixel of the image to the specified power.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| power | const Cuvi32f | Power by which each pixel would be raised. |
| dst | CuviImage& | Output Image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
| 16uC1 | 16uC1 |
| 16uC3 | 16uC3 |
| 32fC1 | 32fC1 |
| 32fC3 | 32fC3 |
Example
|