如何将ImageJ用作单独Java应用程序的库? [英] How can I use ImageJ as a library for a separate Java application?
问题描述
在常规Java应用程序中,我有一个我想用ImageJ操作的BufferedImage。我有一个宏,这正是我需要执行的。我怀疑第一步是创建一个ImagePlus对象,但我不知道如何在Java中运行ImagePlus对象上的宏。 ImageJ教程的7.3节发现这里说:
In a regular Java application, I have a BufferedImage that I would like to manipulate with ImageJ. I have a macro that is exactly what I need to execute. I suspect that the first step is to make an ImagePlus object, but I am not sure how to then run a macro on the ImagePlus object from within Java. Section 7.3 of the ImageJ tutorial found here says:
如果您决定使用ImagePlus作为内部图像格式,您还可以使用ImageJ发行版中的所有插件
和宏以及所有其他ImageJ插件。
If you decide to use ImagePlus as your internal image format you can also use all plugins and macros from the ImageJ distribution as well as all other ImageJ plugins.
但不表示如何操作。如果有人可以解释如何,或指向我的资源,我会非常感激。
But does not indicate how to do so. If someone could explain how, or point me towards a resource that does, I would very much appreciate it.
推荐答案
以下网站使用示例描述ImageJ API: http://albert.rierol.net/imagej_programming_tutorials.html#ImageJ 编程基础
The following site describes ImageJ API with examples: http://albert.rierol.net/imagej_programming_tutorials.html#ImageJ programming basics
这些例子包括阅读图像,处理像素等等。我想你还需要使用 API文档很多。
The examples include reading images, processing pixels etc. Well, I guess you will also need to use the API documentation a lot.
这篇关于如何将ImageJ用作单独Java应用程序的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!