public static ZsImage PyramidDownLab(this ZsImage labImage, bool blur) { return(labImage .FromLabToRgb() .FromRgbToArgb(Area2D.Create(0, 0, labImage.Width, labImage.Height)) .PyramidDownArgb(blur) .FromArgbToRgb(new[] { 1.0, 1.0, 1.0 }) .FromRgbToLab()); }
public static ZsImage PyramidUpLab(this ZsImage labImage) { labImage = labImage .FromLabToRgb() //.FromRgbToArgb() .ScaleUp2x() .Filter(GaussianFilter, 5, 5, 4.0 / 16.0) //.Filter(GaussianFilter3x3, 3, 3) //.FromArgbToRgb() .FromRgbToLab(); return(labImage); }