Difference between revisions of "Function:MedianFilter"
From CUVI Wiki
(Created page with "__NOTOC__ Applies 2D median filter to the input image ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus minFilter(const CuviImage& src, ...") |
|||
| Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus | CuviStatus medianFilter(const CuviImage& src, | ||
CuviImage& dst, | |||
const CuviRect& roi, | |||
const CuviSize& filterSize, | |||
const CuviStream& stream = CuviStream()); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Latest revision as of 11:51, 13 June 2014
Applies 2D median filter to the input image
Function
|
Parameters
| Name | Type | Description |
|---|---|---|
| src | const CuviImage& | Input Image |
| dst | CuviImage& | Output Image |
| roi | const CuviRect& | Region of Interest |
| filterSize | const CuviSize& | Median filter's kernel size. Only 3x3, 5x5, 7x7, and 9x9 are supported |
| stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
| Input | Output |
|---|---|
| 8uC1 | 8uC1 |
| 8uC3 | 8uC3 |
Sample
Example
|