Skip to content

Commit

Permalink
Merge pull request #7 from jburel/python
Browse files Browse the repository at this point in the history
Python
  • Loading branch information
jburel committed Jun 2, 2020
2 parents 17b7579 + 54a47fc commit f64f1bc
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 56 deletions.
42 changes: 42 additions & 0 deletions docs/imagej_python.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Use ImageJ in Python
====================

Description:
------------

This section shows how to use ImageJ as a Python library to analyze data in OMERO.

Using the Python API allows us to easily load the 2D-plane we need to see or analyze.
This is much easier that when using the Java API and Bio-Formats plugin.

We will show in the notebooks:

- How to start ImageJ in Python

- How to load data from OMERO

- How to run ImageJ macro from Python

Setup
-----

In this case, Fiji has been installed locally. It is possible to install Fiji "on the fly",
see `ImageJ Tutorials <https://nbviewer.jupyter.org/github/imagej/tutorials/blob/master/notebooks/ImageJ-Tutorials-and-Demo.ipynb>`_ for more options.

Install omero-py and `pyimagej <https://pypi.org/project/pyimagej/>`_ via Conda:

- Install `Miniconda <https://docs.conda.io/en/latest/miniconda.html>`_ if necessary.

- Create a programming environment using Conda and activate it::

$ conda create -n fiji_python python=3.6

$ conda activate fiji_python

- Install omero-py and `pyimagej <https://pypi.org/project/pyimagej/>`_::

$ conda install -c conda-forge pyimagej

$ conda install -c ome omero-py


1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Contents:
threshold_manual
threshold_scripting
headless_notebook
imagej_python
69 changes: 13 additions & 56 deletions notebooks/imagej_python.ipynb

Large diffs are not rendered by default.

0 comments on commit f64f1bc

Please sign in to comment.