ImageMagick.ChannelMoments.ChannelMoments C# (CSharp) Méthode

ChannelMoments() private méthode

private ChannelMoments ( PixelChannel channel, IntPtr instance ) : System
channel PixelChannel
instance IntPtr
Résultat System
    private ChannelMoments(PixelChannel channel, IntPtr instance)
    {
      Channel = channel;

      NativeChannelMoments nativeInstance = new NativeChannelMoments(instance);
      Centroid = PointD.FromPointInfo(nativeInstance.Centroid);
      EllipseAngle = nativeInstance.EllipseAngle;
      EllipseAxis = PointD.FromPointInfo(nativeInstance.EllipseAxis);
      EllipseEccentricity = nativeInstance.EllipseEccentricity;
      EllipseIntensity = nativeInstance.EllipseIntensity;
      SetHuInvariants(nativeInstance);
    }