Esempio n. 1
0
        public void DiffusionFilter_WorksWithAllErrorDiffusers <TPixel>(
            TestImageProvider <TPixel> provider,
            IErrorDiffuser diffuser)
            where TPixel : struct, IPixel <TPixel>
        {
            if (SkipAllDitherTests)
            {
                return;
            }

            provider.RunValidatingProcessorTest(
                x => x.Diffuse(diffuser, 0.5f),
                testOutputDetails: diffuser.GetType().Name,
                comparer: ValidatorComparer,
                appendPixelTypeToFileName: false);
        }