/// <summary> /// Returns a GpuImage corresponding to a specified rectangle of the current GpuImage. 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. /// </summary> /// <param name="region">Zero-based coordinates of the rectangle of interest.</param> /// <returns>A GpuImage that represent the region of the current GpuImage.</returns> /// <remarks>The parent GpuImage should never be released before the returned GpuImage that represent the subregion</remarks> public new GpuImage <TColor, TDepth> GetSubRect(Rectangle region) { return(new GpuImage <TColor, TDepth>(GpuInvoke.GetSubRect(this, region))); }
/// <summary> /// Returns a GpuMat corresponding to a specified rectangle of the current GpuMat. 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. /// </summary> /// <param name="region">Zero-based coordinates of the rectangle of interest.</param> /// <returns>A GpuMat that represent the region of the current matrix.</returns> /// <remarks>The parent GpuMat should never be released before the returned GpuMat the represent the subregion</remarks> public GpuMat <TDepth> GetSubRect(Rectangle region) { return(new GpuMat <TDepth>(GpuInvoke.GetSubRect(this, region))); }