コード例 #1
0
        public MagickImage FeatherImage(MagickImage image, MorphologyMethod method, Kernel kernel)
        {
            var feathered = new MagickImage(image);

            feathered.VirtualPixelMethod = VirtualPixelMethod.Transparent;

            feathered.Morphology(method, kernel);

            return(feathered);
        }
コード例 #2
0
 public static extern MagickBooleanType MagickMorphologyImageChannel(IntPtr magickWand1, [In] ChannelType channelType2, MorphologyMethod val3, IntPtr ssizetVal4, ref KernelInfo kernelInfo5);
コード例 #3
0
 public static extern MagickBooleanType MagickMorphologyImage(IntPtr magickWand1, MorphologyMethod val2, IntPtr ssizetVal3, ref KernelInfo kernelInfo4);
コード例 #4
0
ファイル: Interop.cs プロジェクト: chopshop-166/WPILib
 public static extern int imaqMorphology(IntPtr dest, IntPtr source, MorphologyMethod method, ref StructuringElement structuringElement);
コード例 #5
0
ファイル: MagickImage.cs プロジェクト: dlemstra/Magick.NET
 public void Morphology(MorphologyMethod method, string kernel, Channels channels, int iterations)
 {
   using (INativeInstance kernelNative = UTF8Marshaler.CreateInstance(kernel))
   {
     IntPtr exception = IntPtr.Zero;
     IntPtr result;
     #if ANYCPU
     if (NativeLibrary.Is64Bit)
     #endif
     #if WIN64 || ANYCPU
     result = NativeMethods.X64.MagickImage_Morphology(Instance, (UIntPtr)method, kernelNative.Instance, (UIntPtr)channels, (UIntPtr)iterations, out exception);
     #endif
     #if ANYCPU
     else
     #endif
     #if !WIN64 || ANYCPU
     result = NativeMethods.X86.MagickImage_Morphology(Instance, (UIntPtr)method, kernelNative.Instance, (UIntPtr)channels, (UIntPtr)iterations, out exception);
     #endif
     CheckException(exception, result);
     Instance = result;
   }
 }