Difference between revisions of "Function:MinFilter"
From CUVI Wiki
(Created page with "__NOTOC__ Filters an image using a min filter and default Anchor Position ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus minFilter(CuviIma...") |
|||
Line 66: | Line 66: | ||
{| | {| | ||
|- | |- | ||
|[[File: | |[[File:Color_window.jpg|frame|Input]] | ||
|[[File: | |[[File:Min5x5_out.jpg|frame|Min 5x5]] | ||
|} | |} | ||
Line 87: | Line 87: | ||
CuviROI roi = cuviROI(0,0,img->width,img->height); | CuviROI roi = cuviROI(0,0,img->width,img->height); | ||
// | //Filter Size | ||
CuviSize fSize = cuviSize(5,5); | |||
//Applying filter | //Applying Min 5x5 filter | ||
cuvi::imageFiltering:: | cuvi::imageFiltering::minFilter(gimg, gout, roi, fSize); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} |
Revision as of 15:47, 1 May 2012
Filters an image using a min filter and default Anchor Position
Function
|
Parameters
Name | Type | Description |
---|---|---|
srcImage | CuviImage* | Input Image |
dstImage | CuviImage* | Output Image |
roi | CuviROI | Region of Interest |
filterSize | CuviSize | Min filter's kernel size |
stream | 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
|