예제 #1
0
 /// <summary>
 /// Create a GpuImage from the specific region of <paramref name="image"/>. The data is shared between the two GpuImage
 /// </summary>
 /// <param name="image">The GpuImage where the region is extracted from</param>
 /// <param name="colRange">The column range. Use MCvSlice.WholeSeq for all columns.</param>
 /// <param name="rowRange">The row range. Use MCvSlice.WholeSeq for all rows.</param>
 public GpuImage(GpuImage <TColor, TDepth> image, MCvSlice rowRange, MCvSlice colRange)
     : this(GpuInvoke.GpuMatGetRegion(image, rowRange, colRange))
 {
 }
예제 #2
0
파일: GpuMat.cs 프로젝트: padelin/project1
 /// <summary>
 /// Create a GpuMat from the specific region of <paramref name="mat"/>. The data is shared between the two GpuMat
 /// </summary>
 /// <param name="mat">The matrix where the region is extracted from</param>
 /// <param name="colRange">The column range. Use MCvSlice.WholeSeq for all columns.</param>
 /// <param name="rowRange">The row range. Use MCvSlice.WholeSeq for all rows.</param>
 public GpuMat(GpuMat <TDepth> mat, MCvSlice rowRange, MCvSlice colRange)
 {
     _ptr = GpuInvoke.GpuMatGetRegion(mat, rowRange, colRange);
 }