CvInvokeGetRectSubPix Method |
http://www.emgu.com
Extracts pixels from src:
dst(x, y) = src(x + center.x - (width(dst)-1)*0.5, y + center.y - (height(dst)-1)*0.5)
where the values of pixels at non-integer coordinates are retrieved using bilinear interpolation. Every channel of multiple-channel images is processed independently. Whereas the rectangle center must be inside the image, the whole rectangle may be partially occluded. In this case, the replication border mode is used to get pixel values beyond the image boundaries.
Namespace: Emgu.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void GetRectSubPix(
IInputArray image,
Size patchSize,
PointF center,
IOutputArray patch,
DepthType patchType = DepthType.Default
)
Public Shared Sub GetRectSubPix (
image As IInputArray,
patchSize As Size,
center As PointF,
patch As IOutputArray,
Optional patchType As DepthType = DepthType.Default
)
public:
static void GetRectSubPix(
IInputArray^ image,
Size patchSize,
PointF center,
IOutputArray^ patch,
DepthType patchType = DepthType::Default
)
static member GetRectSubPix :
image : IInputArray *
patchSize : Size *
center : PointF *
patch : IOutputArray *
?patchType : DepthType
(* Defaults:
let _patchType = defaultArg patchType DepthType.Default
*)
-> unit
Parameters
- image
- Type: Emgu.CVIInputArray
Source image - patchSize
- Type: System.DrawingSize
Size of the extracted patch. - center
- Type: System.DrawingPointF
Floating point coordinates of the extracted rectangle center within the source image. The center must be inside the image. - patch
- Type: Emgu.CVIOutputArray
Extracted rectangle - patchType (Optional)
- Type: Emgu.CV.CvEnumDepthType
Depth of the extracted pixels. By default, they have the same depth as image.
See Also