Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Python wrapper for ImageJ

Project description

# Python client for ImageJ

[``]( provides a set of wrapper
functions for integration between imagej and python. It also provides a
high-level entry point `imagej.IJ` for invoking `imagej-server` APIs.

## Requirements:

- pyjnius
- imglib2-imglyb

Refer to Pyjnius installation guide for installing

For imglib2-imglyb installation, you can simply use `conda install -c
hanslovsky imglib2-imglyb` Other infomation regarding imglyb can be found in
imglyb [git repo](

- requests
- Pillow

Use `pip install -r server_requirements.txt` to install requirements for server.

`Pillow` is required for the imagej.server module's `` function.
In addition, `display` or `xv` needs to exist in your system to view the image.

## Usage

# Spin up ImageJ.
import imagej
ij = imagej.init('/Applications/')

# Import an image with scikit-image.
import skimage
from skimage import io
# NB: Blood vessel image from:
img = io.imread('')
import numpy as np
img = np.mean(img, axis=2)

# Invoke ImageJ's Frangi vesselness op.
vessels = np.zeros(img.shape, dtype=img.dtype)
ij.op().filter().frangiVesselness(imglyb.to_imglib(vessels), imglyb.to_imglib(img), [1, 1], 20)

For imagej-server, there is a short usage example

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
imagej-0.2.0-py2.py3-none-any.whl (6.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 May 18, 2018
imagej-0.2.0.tar.gz (6.4 kB) Copy SHA256 hash SHA256 Source None May 18, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page