Atitit 混合叠加俩张图片的处理 图像处理解决方案 javafx blend

Atitit 混合叠加俩张图片的处理 图像处理解决方案 javafx blend

 

1.1. Jhlabs 好像有了可以叠加算法,但是没有找到doc1

1.2. 自己算法叠加1

1.3. 使用javafx 类库实现图像叠加混合1

 

1.1. Jhlabs 好像有了可以叠加算法,但是没有找到doc

1.2. 自己算法叠加

/AtiPlatf_cms/src/com/attilax/img/ImageBlendFilter.java

Blend blend = new Blend(BlendMode.COLOR_DODGE);

  blend.setTopInput( new ImageInput(img1_jfxfmt));

  blend.setBottomInput(new ImageInput(lowImg_jfxFmt) );

 

// iv2.setEffect(blend);

 

Group grp =new Group();

//new Group( lowImg_Imgview,topImg_imgview);

  grp.setEffect(blend);

 

 

1.3. 使用javafx 类库实现图像叠加混合

public static BufferedImage blend_COLOR_DODGE(String topImg,

 

String lowImg) {

javafx.scene.image.Image topimg_jfxfmt = toImg(topImg);

 

javafx.scene.image.Image lowImg_jfxFmt = toImg(lowImg);

 

Blend blend = new Blend(BlendMode.COLOR_DODGE);

blend.setTopInput(new ImageInput(topimg_jfxfmt));

blend.setBottomInput(new ImageInput(lowImg_jfxFmt));

 

Group grp = new Group();

 

grp.setEffect(blend);

 

//WritableImage img = new WritableImage((int) topimg_jfxfmt.getWidth(),

//(int) topimg_jfxfmt.getHeight());

// scene.snapshot(img);

WritableImage img2 = grp.snapshot(new SnapshotParameters(), null);

 

//StackPane root = javafxUtil.getStackPaneFrmImg(img2);

 

BufferedImage copy2 =  SwingFXUtils.fromFXImage(img2, null);

copy2 = imgx.Remove_alpha_channel(copy2);

return copy2;

}

 

参考资料

Atitti 图像处理 图像混合 图像叠加 blend 原理与实现

Photoshop27种图层混合模式原理图文详解_脚本之家.htm

認識Photoshop Blend Mode - Part 1 - DCFever.com.html

PS中图层混合模式的Blend公式 - Jave.Lin的专栏 - 博客频道 - CSDN.NET.html

图像处理之基于像素的图像混合 - 流浪的鱼 - 博客频道 - CSDN.NET.html

 

混合模式_百度百科.html

 

 

作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 

汉字名:艾提拉(艾龙)   EMAIL:1466519819@qq.com

转载请注明来源: http://blog.csdn.net/attilax

Atiend

 

 

posted @ 2016-11-07 02:55  attilaxAti  阅读(33)  评论(0编辑  收藏  举报