问题描述
我尝试使用 ImageJ 库来处理图像。我的问题是,某些线程永远不会停止。 Eclipse 总是向我显示一个正在运行的活动线程。如果我将一个 > 0 的值传递给下面的函数,就会发生这种情况。似乎 ImageJ 在需要处理某些内容时会在内部打开一个线程(例如 blurGaussian(0.1))。
如何停止此线程?
我的代码:
public static BufferedImage preProcessBufferedImage(BufferedImage bufferedImage,double sigma) throws IOException {
ImagePlus imagePlus = new ImagePlus("",bufferedImage);
imagePlus.getProcessor().blurGaussian(sigma);
return imagePlus.getBufferedImage();
}
使用的库: https://mvnrepository.com/artifact/net.imagej/ij/1.53h
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)