|
|
Line 1: |
Line 1: |
| __NOTOC__
| |
| Calculates minimum eigen value of each image pixel.
| |
| ===Function===
| |
| {|
| |
| |style="font-size:150%;"|
| |
| <syntaxhighlight lang="cpp">
| |
| CuviStatus minEigenVals(CuviImage* srcImage,
| |
| CuviImage* dstImage,
| |
| CuviGradientKernelType gradientKernelType,
| |
| Cuvi32s windowSize,
| |
| CuviStream* stream = NULL);
| |
| </syntaxhighlight>
| |
| |}
| |
| ===Parameters===
| |
|
| |
|
| {|class="wikitable"
| |
| |-
| |
| ! Name
| |
| ! Type
| |
| ! Description
| |
| |-
| |
| | srcImage
| |
| | CuviImage*
| |
| | Input Image
| |
| |-
| |
| | dstImage
| |
| | CuviImage*
| |
| | Output Image
| |
| |-
| |
| | gradientKernelType
| |
| | CuviGradientKernelType
| |
| | Type of derivative kernel to use for gradient calculation
| |
| |-
| |
| | windowSize
| |
| | Cuvi32s
| |
| | Window size for eigen value calculation
| |
| |-
| |
| | stream
| |
| | CuviStream*
| |
| | GPU stream ID for execution
| |
|
| |
| |}
| |
|
| |
| ===Image Type Support===
| |
|
| |
| {| class="wikitable"
| |
| |-
| |
| ! Input
| |
| ! Output
| |
| |-
| |
| | 8uC1
| |
| | 32fC1
| |
| |}
| |
|
| |
| ===Example===
| |
| {|
| |
| |style="font-size:150%;"|
| |
| <syntaxhighlight lang="cpp">
| |
|
| |
| //Input image
| |
| CuviImage* gimg = new CuviImage(cuviSize(width,height),depth,1);
| |
| gimg->upload(img->imageData,img->widthStep);
| |
|
| |
| //Output Image
| |
| CuviImage* gout = new CuviImage(cuviSize(width,height),CUVI_DEPTH_32F,1);
| |
|
| |
| //Compute Eigen Values Using 3x3 Sobel Filter for derivative, and 5x5 window for Eigen Value calculation
| |
| cuvi::computerVision::minEigenVals(gimg,gout,CUVI_GRADIENT_SOBEL_3x3,5);
| |
|
| |
| </syntaxhighlight>
| |
| |}
| |