Beispiel #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));
        }
Beispiel #2
0
 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);
 }
Beispiel #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);
        }
Beispiel #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));
        }
Beispiel #6
0
 public void WorksWithDiscoBuffers <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunBufferCapacityLimitProcessorTest(37, c => this.Apply(c, Color.DarkRed));
 }