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