Click or drag to resize
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.CV
Assembly: 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
)

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