Difference between revisions of "Function:SHR"
From CUVI Wiki
(Created page with "__NOTOC__ Right shift pixel values of the input image by specified constant value. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus SHR(cons...") |
|||
| Line 64: | Line 64: | ||
{| | {| | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp" style="androidstudio"> | ||
CuviImage input = cuvi::io::loadImage(path); | CuviImage input = cuvi::io::loadImage(path); | ||
Revision as of 07:48, 18 October 2022
Right shift pixel values of the input image by specified constant value.
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| value | const CuviImage& | Shift value |
| dst | CuviImage& | Resultant Image |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
| 16uC1 | 16uC1 |
| 16uC3 | 16uC3 |
Sample
Example
|