Esempio n. 1
0
 public void ApplyHueFilter <TPixel>(TestImageProvider <TPixel> provider, int value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Hue(value), value);
 }
Esempio n. 2
0
 public void Resize_IsNotBoundToSinglePixelType <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Resize(x.GetCurrentSize() / 2), comparer: ValidatorComparer);
 }
Esempio n. 3
0
 public void ApplyBrightnessFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Brightness(value), value);
 }
Esempio n. 4
0
 public void ApplyInvertFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Invert());
 }
Esempio n. 5
0
 public void ApplyGrayscaleFilter <TPixel>(TestImageProvider <TPixel> provider, GrayscaleMode value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Grayscale(value), value);
 }
Esempio n. 6
0
 public void ApplyBrightnessFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel> => provider.RunValidatingProcessorTest(ctx => ctx.Brightness(value), value, this.imageComparer);
Esempio n. 7
0
 public void ApplyBlackWhiteFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.BlackWhite(), comparer: ImageComparer.TolerantPercentage(0.002f));
 }
Esempio n. 8
0
 public void EntropyCrop <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.EntropyCrop(value), value, appendPixelTypeToFileName: false);
 }
Esempio n. 9
0
 public void ApplyColorBlindnessFilter <TPixel>(TestImageProvider <TPixel> provider, ColorBlindnessMode colorBlindness)
     where TPixel : unmanaged, IPixel <TPixel> => provider.RunValidatingProcessorTest(x => x.ColorBlindness(colorBlindness), colorBlindness.ToString(), this.imageComparer);
Esempio n. 10
0
 public void FullImage <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.BackgroundColor(Color.HotPink));
 }
Esempio n. 11
0
 public void Rotate_WithRotateTypeEnum <TPixel>(TestImageProvider <TPixel> provider, RotateMode value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false);
 }
Esempio n. 12
0
 public void ApplyKodachromeFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Kodachrome());
 }
Esempio n. 13
0
 public void Rotate_WithAngle <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false);
 }
Esempio n. 14
0
 public void ApplyAlphaFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Opacity(value), value);
 }
Esempio n. 15
0
 public void FullImage <TPixel>(TestImageProvider <TPixel> provider, int value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Pixelate(value), value, appendPixelTypeToFileName: false);
 }
Esempio n. 16
0
 public void ApplyBlackWhiteFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.BlackWhite());
 }
Esempio n. 17
0
 public void ApplyColorBlindnessFilter <TPixel>(TestImageProvider <TPixel> provider, ColorBlindnessMode colorBlindness)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.ColorBlindness(colorBlindness), colorBlindness.ToString());
 }
Esempio n. 18
0
 public void ApplySaturationFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Saturate(value), value);
 }
Esempio n. 19
0
 public void ApplyContrastFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Contrast(value), value);
 }
Esempio n. 20
0
 public void ApplyLomographFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Lomograph());
 }
Esempio n. 21
0
 public void ApplySepiaFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Sepia());
 }
Esempio n. 22
0
 public void Skew_IsNotBoundToSinglePixelType <TPixel>(TestImageProvider <TPixel> provider, float x, float y)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Skew(x, y), $"{x}_{y}", ValidatorComparer);
 }