public static void RemoveImageArtifacts(this IMorphologySettings self, IMagickImage <QuantumType> image)
        {
            if (self.ConvolveBias != null)
            {
                image.RemoveArtifact("convolve:bias");
            }

            if (self.ConvolveScale != null)
            {
                image.RemoveArtifact("convolve:scale");
            }
        }
        public static void RemoveImageArtifacts(this IDistortSettings self, IMagickImage <QuantumType> image)
        {
            if (self.Scale != null)
            {
                image.RemoveArtifact("distort:scale");
            }

            if (self.Viewport != null)
            {
                image.RemoveArtifact("distort:viewport");
            }
        }
 public static void RemoveImageArtifacts(this IDeskewSettings self, IMagickImage <QuantumType> image)
 {
     if (self.AutoCrop)
     {
         image.RemoveArtifact("deskew:auto-crop");
     }
 }
Beispiel #4
0
 public static void RemoveImageArtifacts(this IComplexSettings self, IMagickImage <QuantumType> image)
 {
     if (self.SignalToNoiseRatio != null)
     {
         image.RemoveArtifact("complex:snr");
     }
 }
Beispiel #5
0
 public static void RemoveImageArtifacts(this IKmeansSettings self, IMagickImage <QuantumType> image)
 {
     if (!string.IsNullOrEmpty(self.SeedColors))
     {
         image.RemoveArtifact("kmeans:seed-colors");
     }
 }
        public static void RemoveImageArtifacts(this ICompareSettings <QuantumType> self, IMagickImage <QuantumType> image)
        {
            if (self.HighlightColor != null)
            {
                image.RemoveArtifact("compare:highlight-color");
            }

            if (self.LowlightColor != null)
            {
                image.RemoveArtifact("compare:lowlight-color");
            }

            if (self.MasklightColor != null)
            {
                image.RemoveArtifact("compare:masklight-color");
            }
        }
Beispiel #7
0
        public static void RemoveImageArtifacts(this IConnectedComponentsSettings self, IMagickImage <QuantumType> image)
        {
            if (self.AngleThreshold != null)
            {
                image.RemoveArtifact("connected-components:angle-threshold");
            }

            if (self.AreaThreshold != null)
            {
                image.RemoveArtifact("connected-components:area-threshold");
            }

            if (self.CircularityThreshold != null)
            {
                image.RemoveArtifact("connected-components:circularity-threshold");
            }

            if (self.DiameterThreshold != null)
            {
                image.RemoveArtifact("connected-components:diameter-threshold");
            }

            if (self.EccentricityThreshold != null)
            {
                image.RemoveArtifact("connected-components:eccentricity-threshold");
            }

            if (self.MajorAxisThreshold != null)
            {
                image.RemoveArtifact("connected-components:major-axis-threshold");
            }

            if (self.MeanColor)
            {
                image.RemoveArtifact("connected-components:mean-color");
            }

            if (self.MinorAxisThreshold != null)
            {
                image.RemoveArtifact("connected-components:minor-axis-threshold");
            }

            if (self.PerimeterThreshold != null)
            {
                image.RemoveArtifact("connected-components:perimeter-threshold");
            }
        }