Difference between revisions of "Function:MinFilter"
From CUVI Wiki
Line 5: | Line 5: | ||
|style="font-size:150%;"| | |style="font-size:150%;"| | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
CuviStatus minFilter(CuviImage | CuviStatus minFilter(const CuviImage& src, | ||
CuviImage | CuviImage& dst, | ||
const CuviRect& roi, | |||
CuviSize filterSize, | const CuviSize& filterSize, | ||
CuviStream | const CuviStream& stream = CuviStream()); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Line 20: | Line 20: | ||
! Description | ! Description | ||
|- | |- | ||
| | | src | ||
| CuviImage | | const CuviImage& | ||
| Input Image | | Input Image | ||
|- | |- | ||
| | | dst | ||
| CuviImage | | CuviImage& | ||
| Output Image | | Output Image | ||
|- | |- | ||
| roi | | roi | ||
| | | const CuviRect& | ||
| Region of Interest | | Region of Interest | ||
|- | |- | ||
| filterSize | | filterSize | ||
| CuviSize | | const CuviSize& | ||
| Min filter's kernel size | | Min filter's kernel size | ||
|- | |- | ||
| stream | | stream | ||
| CuviStream | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
Line 78: | Line 78: | ||
//Input image | //Input image | ||
CuviImage | CuviImage gimg = cuvi::io::loadImage(path); | ||
//Output Image | //Output Image | ||
CuviImage | CuviImage gout; | ||
//Choosing ROI | //Choosing ROI | ||
CuviRect roi(0,0,img.width(),img.height()); | |||
//Filter Size | //Filter Size | ||
CuviSize fSize | CuviSize fSize(5,5); | ||
//Applying Min filter of size 5x5 on the image | //Applying Min filter of size 5x5 on the image |
Latest revision as of 14:51, 19 April 2013
Filters an image using a min filter and default Anchor Position
Function
|
Parameters
Name | Type | Description |
---|---|---|
src | const CuviImage& | Input Image |
dst | CuviImage& | Output Image |
roi | const CuviRect& | Region of Interest |
filterSize | const CuviSize& | Min filter's kernel size |
stream | const CuviStream& | GPU stream ID for execution |
Image Type Support
Input | Output |
---|---|
8uC1 | 8uC1 |
8uC3 | 8uC3 |
16uC1 | 16uC1 |
16uC3 | 16uC3 |
Sample
Error creating thumbnail: Unable to save thumbnail to destination |
Error creating thumbnail: Unable to save thumbnail to destination |
Example
|