简体   繁体   中英

how to control ImageJ from Python 3.4.2

I am trying to use Python 3.4.2 to control ImageJ

what I want to do is from python code , I want to sent orders to imageJ to analayse some images, detecting edges, contrast, noise etc there is a similar question here How to connect ImageJ to python? but there is no answer, like "install this, and control the Find Edges button with this command"

I wonder how can I do that, can somebody help me

I have found this link , and this link , and they say that it is possible by using "import ij" but there is no ij library that I can use or install.

also ImageJ website states in "How can I call ImageJ from my software?" that "If your software is written in another language such as C or Python, there are many ways to integrate Java functionality. You must choose which one is best for your particular requirements." but there are no specifics

this Google webpage says that with "py4ij" I can control imagej with python "Py4IJ - Python for ImageJ - plugin and IDE that allows Python and Jython access to the ImageJ"

but I am not sure how to run it, Help

as an alternative to Imagej is Fiji but I am not sure if python can control it or I have to use Fiji , and Fiji tutorial

my last alternative is Using OpenCV for image processing but I actually need to use ImageJ or Fiji, so OpenCV is not a valid answer

thanks

EDIT

according to the first answer, it suggest to write a CellProfiler's RunImageJ module, but my question is should I have to install CellProfiler? from here , following the examples here and here and running the module

or should I follow the native Python idea from this link

in any case the first answer link talks about Jython, but I can not use Jython, the latest version of it is based on python2.7 and I am using 3.4, and there is no development for jython 3.x

help

Integration of Python with ImageJ was recently discussed on the new ImageJ forum; see the Python scripting thread.

While it focuses on calling native-code-wrapped Python modules such as NumPy from ImageJ, the reverse direction (calling ImageJ from Python) is also addressed by some of the solutions, particularly CellProfiler's RunImageJ module. As discussed there, a dedicated programmer could start there and champion a more general solution for the benefit of the community.

In general, this issue is discussed on the ImageJ wiki on the Python page, particularly the section on limitations .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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