当前位置: 首页>>代码示例>>C#>>正文


C# NppiBorderType类代码示例

本文整理汇总了C#中NppiBorderType的典型用法代码示例。如果您正苦于以下问题:C# NppiBorderType类的具体用法?C# NppiBorderType怎么用?C# NppiBorderType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NppiBorderType类属于命名空间,在下文中一共展示了NppiBorderType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: nppiDilate3x3Border_16u_C1R

 public static extern NppStatus nppiDilate3x3Border_16u_C1R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:9,代码来源:nppi_morphological_operations.cs

示例2: FilterSharpenBorderA

		/// <summary>
		/// Sharpen filter.
		/// </summary>
		/// <param name="dst">Destination-Image</param>
		/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
		public void FilterSharpenBorderA(NPPImage_8uC4 dst, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.FixedFilters.nppiFilterSharpenBorder_8u_AC4R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterSharpenBorder_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:NPPImage_8uC4.cs

示例3: FilterGaussBorderA

		/// <summary>
		/// Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients
		/// </summary>
		/// <param name="dst">Destination-Image</param>
		/// <param name="Kernel">Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps =  2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.</param>
		/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
		public void FilterGaussBorderA(NPPImage_8uC4 dst, CudaDeviceVariable<float> Kernel, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.FilterGaussBorder.nppiFilterGaussAdvancedBorder_8u_AC4R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, Kernel.Size, Kernel.DevicePointer, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterGaussAdvancedBorder_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:12,代码来源:NPPImage_8uC4.cs

示例4: ErodeBorderA

		/// <summary>
		/// Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s
		/// corresponding mask values are zero to not participate in the maximum search. With border control, ignoring alpha-channel.
		/// </summary>
		/// <param name="dest">Destination image</param>
		/// <param name="Mask">Pointer to the start address of the mask array.</param>
		/// <param name="aMaskSize">Width and Height mask array.</param>
		/// <param name="oAnchor">X and Y offsets of the mask origin frame of reference w.r.t the source pixel.</param>
		/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
		public void ErodeBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.ErosionWithBorderControl.nppiErodeBorder_8u_AC4R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, Mask.DevicePointer, aMaskSize, oAnchor, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiErodeBorder_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:15,代码来源:NPPImage_8uC4.cs

示例5: SumWindowRowBorder

		/// <summary>
		/// Apply Row Window Summation filter over a 1D mask region around each source
		/// pixel for 3-channel 8-bit pixel input images with 32-bit floating point output.  
		/// Result 32-bit floating point pixel is equal to the sum of the corresponding and
		/// neighboring row pixel values in a mask region of the source image defined
		/// by nKernelDim and nAnchorX. 
		/// </summary>
		/// <param name="dest">Destination image</param>
		/// <param name="nMaskSize">Length of the linear kernel array.</param>
		/// <param name="nAnchor">X offset of the kernel origin frame of reference w.r.t the source pixel.</param>
		/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
		public void SumWindowRowBorder(NPPImage_32fC4 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.WindowSum1D.nppiSumWindowRowBorder_8u32f_C4R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nMaskSize, nAnchor, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSumWindowRowBorder_8u32f_C4R", status));
			NPPException.CheckNppStatus(status, this);
		}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:17,代码来源:NPPImage_8uC4.cs

示例6: nppiFilterMinBorder_8u_C4R

 public static extern NppStatus nppiFilterMinBorder_8u_C4R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     NppiSize oMaskSize,
     NppiPoint oAnchor,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:11,代码来源:nppi_filtering_functions.cs

示例7: Erode3x3Border

		/// <summary>
		/// 3x3 erosion with border control.
		/// </summary>
		/// <param name="dest">Destination image</param>
		/// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
		public void Erode3x3Border(NPPImage_16uC3 dest, NppiBorderType eBorderType)
		{
			status = NPPNativeMethods.NPPi.Erode3x3Border.nppiErode3x3Border_16u_C3R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, eBorderType);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiErode3x3Border_16u_C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:NPPImage_16uC3.cs

示例8: nppiFilterScharrHorizBorder_8u16s_C1R

 public static extern NppStatus nppiFilterScharrHorizBorder_8u16s_C1R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:9,代码来源:nppi_filtering_functions.cs

示例9: nppiFilterSharpenBorder_32f_C4R

 public static extern NppStatus nppiFilterSharpenBorder_32f_C4R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:9,代码来源:nppi_filtering_functions.cs

示例10: GradientVectorSobelBorder

 /// <summary>
 /// 3 channel 8-bit unsigned packed RGB to optional 1 channel 16-bit signed X (vertical), Y (horizontal), magnitude, 
 /// and/or 32-bit floating point angle gradient vectors with user selectable fixed mask size and distance method with border control.
 /// </summary>
 /// <param name="destX">X vector destination_image_pointer</param>
 /// <param name="destY">Y vector destination_image_pointer.</param>
 /// <param name="destMag">magnitude destination_image_pointer.</param>
 /// <param name="destAngle">angle destination_image_pointer.</param>
 /// <param name="eMaskSize">fixed filter mask size to use.</param>
 /// <param name="eNorm">gradient distance method to use.</param>
 /// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
 public void GradientVectorSobelBorder(NPPImage_16sC1 destX, NPPImage_16sC1 destY, NPPImage_16sC1 destMag, NPPImage_32fC1 destAngle, MaskSize eMaskSize, NppiNorm eNorm, NppiBorderType eBorderType)
 {
     status = NPPNativeMethods.NPPi.GradientVectorSobelBorder.nppiGradientVectorSobelBorder_8u16s_C3C1R(_devPtr, _pitch, _sizeOriginal, _pointRoi, destX.DevicePointerRoi, destX.Pitch, destY.DevicePointerRoi, destY.Pitch, destMag.DevicePointerRoi, destMag.Pitch, destAngle.DevicePointerRoi, destAngle.Pitch, _sizeRoi, eMaskSize, eNorm, eBorderType);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiGradientVectorSobelBorder_8u16s_C3C1R", status));
     NPPException.CheckNppStatus(status, this);
 }
开发者ID:kunzmi,项目名称:managedCuda,代码行数:17,代码来源:NPPImage_8uC3.cs

示例11: nppiFilterRobertsUpBorder_16s_C4R

 public static extern NppStatus nppiFilterRobertsUpBorder_16s_C4R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:9,代码来源:nppi_filtering_functions.cs

示例12: FilterGaussPyramidLayerUpBorder

 /// <summary>
 /// Three channel 8-bit unsigned Gauss filter with downsampling and border control.
 /// </summary>
 /// <param name="dest">Destination image</param>
 /// <param name="nRate">The downsampling rate to be used.  For integer equivalent rates unnecessary source pixels are just skipped. For non-integer rates the source image is bilinear interpolated. nRate must be > 1.0F and &lt;=  10.0F. </param>
 /// <param name="nFilterTaps">The number of filter taps where nFilterTaps =  2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.</param>
 /// <param name="pKernel">Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F. </param>
 /// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
 public void FilterGaussPyramidLayerUpBorder(NPPImage_8uC3 dest, float nRate, int nFilterTaps, CudaDeviceVariable<float> pKernel, NppiBorderType eBorderType)
 {
     status = NPPNativeMethods.NPPi.FilterGaussPyramid.nppiFilterGaussPyramidLayerUpBorder_8u_C3R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, dest.SizeRoi, nRate, nFilterTaps, pKernel.DevicePointer, eBorderType);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterGaussPyramidLayerUpBorder_8u_C3R", status));
     NPPException.CheckNppStatus(status, this);
 }
开发者ID:kunzmi,项目名称:managedCuda,代码行数:14,代码来源:NPPImage_8uC3.cs

示例13: FilterBilateralGaussBorder

 /// <summary>
 /// Three channel 8-bit unsigned bilateral Gauss filter with border control.
 /// </summary>
 /// <param name="dest">Destination image</param>
 /// <param name="nRadius">The radius of the round filter kernel to be used.  A radius of 1 indicates a filter kernel size of 3 by 3, 2 indicates 5 by 5, etc. Radius values from 1 to 32 are supported.</param>
 /// <param name="nStepBetweenSrcPixels">The step size between adjacent source image pixels processed by the filter kernel, most commonly 1. </param>
 /// <param name="nValSquareSigma">The square of the sigma for the relative intensity distance between a source image pixel in the filter kernel and the source image pixel at the center of the filter kernel.</param>
 /// <param name="nPosSquareSigma">The square of the sigma for the relative geometric distance between a source image pixel in the filter kernel and the source image pixel at the center of the filter kernel.</param>
 /// <param name="eBorderType">The border type operation to be applied at source image border boundaries.</param>
 public void FilterBilateralGaussBorder(NPPImage_8uC3 dest, int nRadius, int nStepBetweenSrcPixels, float nValSquareSigma, float nPosSquareSigma, NppiBorderType eBorderType)
 {
     status = NPPNativeMethods.NPPi.FilterBilateralGaussBorder.nppiFilterBilateralGaussBorder_8u_C3R(_devPtr, _pitch, _sizeOriginal, _pointRoi, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nRadius, nStepBetweenSrcPixels, nValSquareSigma, nPosSquareSigma, eBorderType);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiFilterBilateralGaussBorder_8u_C3R", status));
     NPPException.CheckNppStatus(status, this);
 }
开发者ID:kunzmi,项目名称:managedCuda,代码行数:15,代码来源:NPPImage_8uC3.cs

示例14: nppiDilateBorder_8u_C4R

 public static extern NppStatus nppiDilateBorder_8u_C4R(
     IntPtr pSrc,
     int nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     int nDstStep,
     NppiSize oSizeROI,
     IntPtr pMask,
     NppiSize oMaskSize,
     NppiPoint oAnchor,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:12,代码来源:nppi_morphological_operations.cs

示例15: nppiFilterGaussAdvancedBorder_8u_C4R

 public static extern NppStatus nppiFilterGaussAdvancedBorder_8u_C4R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiSize oSrcSize,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     int nFilterTaps,
     IntPtr pKernel,
     NppiBorderType eBorderType);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:11,代码来源:nppi_filtering_functions.cs


注:本文中的NppiBorderType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。