• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# NppiBorderType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: nppiFilterSobelVertBorder_8u_AC4R

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


示例17: nppiFilterLowPassBorder_8u_C3R

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


示例18: nppiFilterSobelVertSecondBorder_8u16s_C1R

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


示例19: nppiFilterBorder32f_32s_AC4R

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


示例20: nppiFilterUnsharpBorder_8u_C4R

 public static extern NppStatus nppiFilterUnsharpBorder_8u_C4R(
     IntPtr pSrc,
     Npp32s nSrcStep,
     NppiPoint oSrcOffset,
     IntPtr pDst,
     Npp32s nDstStep,
     NppiSize oSizeROI,
     Npp32f nRadius,
     Npp32f nSigma,
     Npp32f nWeight,
     Npp32f nThreshold,
     NppiBorderType eBorderType,
     IntPtr pDeviceBuffer);
开发者ID:yhbyhb,项目名称:CSCuda,代码行数:13,代码来源:nppi_filtering_functions.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# NppiMaskSize类代码示例发布时间:2022-05-24
下一篇:
C# NppRoundMode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap