Exemplo n.º 1
0
        public void FilterProcessor_WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider)
            where TPixel : unmanaged, IPixel <TPixel>
        {
            ColorMatrix m = CreateCombinedTestFilterMatrix();

            provider.RunBufferCapacityLimitProcessorTest(37, c => c.Filter(m));
        }
Exemplo n.º 2
0
 public void WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider, EdgeDetectionOperators detector)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunBufferCapacityLimitProcessorTest(
         41,
         c => c.DetectEdges(detector),
         detector);
 }
Exemplo n.º 3
0
 public void WorksWithDiscoBuffersCompass <TPixel>(
     TestImageProvider <TPixel> provider,
     EdgeDetectorCompassKernel detector,
     string _)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunBufferCapacityLimitProcessorTest(
         41,
         c => c.DetectEdges(detector),
         detector);
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
 public void WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunBufferCapacityLimitProcessorTest(37, c => this.Apply(c, Color.DarkRed));
 }