コード例 #1
0
ファイル: BlockPrintFilter.cs プロジェクト: kshark27/ZuPix
 //@Override
 public CustomImage process(CustomImage imageIn)
 {
     ParamEdgeDetectFilter pde = new ParamEdgeDetectFilter();
     pde.K00 = 1;
     pde.K01 = 2;
     pde.K02 = 1;
     pde.Threshold = 0.25f;
     pde.DoGrayConversion = false;
     ImageBlender ib = new ImageBlender();
     ib.Mode = (int)BlendMode.Multiply;
     return ib.Blend(imageIn.clone(), pde.process(imageIn));
 }
コード例 #2
0
 //@Override
 public Image process(Image imageIn)
 {
     ParamEdgeDetectFilter pde = new ParamEdgeDetectFilter();
     pde.K00 = 1;
     pde.K01 = 2;
     pde.K02 = 1;
     pde.Threshold = 0.25f;
     pde.DoGrayConversion = false;
     pde.DoInversion = false;
     ImageBlender ib = new ImageBlender();
     ib.Mode = (int)BlendMode.LinearLight;
     ib.Mixture = 2.5f;
     return ib.Blend(imageIn.clone(), pde.process(imageIn));
 }
コード例 #3
0
        //@Override
        public Image process(Image imageIn)
        {
            ParamEdgeDetectFilter pde = new ParamEdgeDetectFilter();

            pde.K00              = 1;
            pde.K01              = 2;
            pde.K02              = 1;
            pde.Threshold        = 0.25f;
            pde.DoGrayConversion = false;
            ImageBlender ib = new ImageBlender();

            ib.Mode = (int)BlendMode.Multiply;
            return(ib.Blend(imageIn.clone(), pde.process(imageIn)));
        }