简体   繁体   English

松香阈值(单峰阈值)JAVA

[英]Rosin thresholding (Unimodal thresholding) JAVA

I have to do for my project many image filters (all you can imagine) in JAVA (I use JAVA JAI). 我必须为我的项目在JAVA(我使用JAVA JAI)中做很多图像过滤器(您可以想象的)。 I have done all except unimodal thresholding by Paul L. Rosin. 除了Paul L. Rosin的单峰阈值处理之外,我已经完成了所有其他工作。 I found only this document and implementation on c++ . 我仅在c ++上找到此文档和实现。 Unfortunately, I'm terrible in c ++. 不幸的是,我在C ++中很糟糕。 Can you help me please? 你能帮我吗? Thanks! 谢谢!

Just use Catalano Framework . 只需使用Catalano Framework It's very easy and fast. 非常简单,快速。 There's a lot of examples in samples folder. 示例文件夹中有很多示例。

import Catalano.Imaging.Filters;
// If you want to use parallel processing. Change the namespace for:
// import Catalano.Imaging.Concurrent.Filters;

FastBitmap fb = new FastBitmap(bufferedImage);
fb.toGrayscale();

RosinThreshold rosin = new RosinThreshold();
rosin.applyInPlace(fb);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM