Difference between revisions of "Function:ImageGradients"
From CUVI Wiki
(Created page with "__NOTOC__ Calculates X and Y gradients of image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus imageGradients(CuviImage* srcImage, ...") |
|||
Line 72: | Line 72: | ||
{| | {| | ||
|- | |- | ||
|[[File: | |[[File:Ferrari.jpg|frame|Input Image]] | ||
|[[File: | |- | ||
|[[File:FerrariX.jpg|frame|Sobel X, 3x3]] | |||
|[[File:FerrariY.jpg|frame|Sobel Y, 3x3]] | |||
|} | |} | ||
Revision as of 14:21, 8 May 2012
Calculates X and Y gradients of image
Function
|
Parameters
Name | Type | Description | ||||
---|---|---|---|---|---|---|
srcImage | CuviImage* | Input image | ||||
dstX | CuviImage* | Horizontal image gradient | ||||
dstY | CuviImage* | Vertical image gradient | ||||
type | CuviGradientKernelType | Supports:
| ||||
stream | CuviStream* | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 32fC1 |
8uC3 | 32fC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination | |
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|