Click or drag to resize
CvInvokeGetRectSubPix Method
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: (
public static void GetRectSubPix(
	IInputArray image,
	Size patchSize,
	PointF center,
	IOutputArray patch,
	DepthType patchType = DepthType.Default


Type: Emgu.CVIInputArray
Source image
Type: System.DrawingSize
Size of the extracted patch.
Type: System.DrawingPointF
Floating point coordinates of the extracted rectangle center within the source image. The center must be inside the image.
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