public void FilterProcessor_WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider) where TPixel : unmanaged, IPixel <TPixel> { ColorMatrix m = CreateCombinedTestFilterMatrix(); provider.RunBufferCapacityLimitProcessorTest(37, c => c.Filter(m)); }
public void WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider, EdgeDetectionOperators detector) where TPixel : struct, IPixel <TPixel> { provider.RunBufferCapacityLimitProcessorTest( 41, c => c.DetectEdges(detector), detector); }
public void WorksWithDiscoBuffersCompass <TPixel>( TestImageProvider <TPixel> provider, EdgeDetectorCompassKernel detector, string _) where TPixel : unmanaged, IPixel <TPixel> { provider.RunBufferCapacityLimitProcessorTest( 41, c => c.DetectEdges(detector), detector); }
public void CommonDitherers_WorkWithDiscoBuffers <TPixel>( TestImageProvider <TPixel> provider, string name) where TPixel : unmanaged, IPixel <TPixel> { IDither dither = TestUtils.GetDither(name); if (SkipAllDitherTests) { return; } provider.RunBufferCapacityLimitProcessorTest( 41, c => c.Dither(dither), name); }
public void CommonDitherers_WorkWithDiscoBuffers <TPixel>( TestImageProvider <TPixel> provider, string name) where TPixel : struct, IPixel <TPixel> { IDither dither = TestUtils.GetDither(name); if (SkipAllDitherTests) { return; } provider.RunBufferCapacityLimitProcessorTest( 41, c => c.Dither(dither), name, ImageComparer.TolerantPercentage(0.001f)); }
public void WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider) where TPixel : unmanaged, IPixel <TPixel> { provider.RunBufferCapacityLimitProcessorTest(37, c => this.Apply(c, Color.DarkRed)); }