CudaImageTColor, TDepthGetSubRect Method |
http://www.emgu.com
Returns a CudaImage corresponding to a specified rectangle of the current CudaImage. The data is shared with the current matrix. In other words, it allows the user to treat a rectangular part of input array as a stand-alone array.
Namespace: Emgu.CV.CudaAssembly: Emgu.CV.Cuda (in Emgu.CV.Cuda.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic CudaImage<TColor, TDepth> GetSubRect(
Rectangle region
)
Public Function GetSubRect (
region As Rectangle
) As CudaImage(Of TColor, TDepth)
public:
CudaImage<TColor, TDepth>^ GetSubRect(
Rectangle region
)
member GetSubRect :
region : Rectangle -> CudaImage<'TColor, 'TDepth>
Parameters
- region
- Type: System.DrawingRectangle
Zero-based coordinates of the rectangle of interest.
Return Value
Type:
CudaImageTColor,
TDepthA CudaImage that represent the region of the current CudaImage.
RemarksThe parent CudaImage should never be released before the returned CudaImage that represent the subregion
See Also