Skip to main content

junkie is a JUpyter NotebooK Image Explorer

Project description

Logo GPLv3 License

JuNkIE (a JUpyter NotebooK Image Explorer)

Installing JuNkIE

To install JuNkIE, type:

$ python3 -m pip install --no-cache-dir -U junkie-rfglab

JuNkIE can also be installed with conda/miniconda or mamba (keep in mind that mamba is much faster):

$ mamba install -c rodrigofg junkie-rfglab

We do most of the development and testing of JuNkIE in Jupyter Lab, so we recommend using Jupyter Lab.

A note on the Python interpreter

JuNkIE requires that you have Python 3.10 or above installed.

Using JuNkIE

Binder

To start, open a notebook and import JuNkIE:

from junkie import junkie

There are a few ways to open an image with JuNkIE:

  • You can open an image with some other package (e.g. scikit-image, opencv, PIL, etc.) and invoke JuNkIE with a numpy ndarray as the parameter:

      import skimage.io as skio
      astack = skio.imread('cells_movie.tif')
      myim = junkie(astack)
    
  • You can also specifiy the path to the image that you want to open:

      myim = junkie('cells_movie.tif')
    
  • Or you can indicate a folder that contains an image sequence:

      myim = junkie('./slices')
    
  • If there are image channels split into different files, you can also specify a tuple of strings to distinguish which files in the folder belong to which channel:

      myim = junkie('./slices', ('488', '561'))
    

JuNkIE has a couple of additional parameters:

  • cmap (str) indicates the color map used to display the image. It defaults to 'gray'. Check here for a list of color maps.

      myim = junkie('cells_movie.tif', cmap='viridis')
    
  • figsize (Tuple[int, int]) specifies the image panel size. The image aspect ratio is maintained. It defaults to (4, 4).

      myim = junkie('cells_movie.tif', figsize=(8, 8)
    

JuNkIE provides access to the standard matplotlib toolbar, and also includes a second toolbar with additional functionality:

icon function
refresh_icon rotate 90° clockwise
refresh_icon flip horizontally
refresh_icon flip vertically
refresh_icon invert color map
refresh_icon hide/show axes
refresh_icon continuous/discrete update

JuNkIE today

As we develop and improve JuNkIE, there may be small changes to the user interface. This is how JuNkIE looks as of today:

JuNkIE today

Citing JuNkIE

If you use JuNkIE, please cite this repository. We are working on the paper!

Adding functionality onto JuNkIE

If you would like to extend JuNkIE, please check out JuNkIE-picasso, a JuNkIE fork that allows you to define arbitrary image processing pipelines and integrate them into JuNkIE.

Sponsors

We are grateful for the generous support from the following agencies and institutions, which contribute to the development and maintenance of JuNkIE:

Sponsors

Project details


Download files

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

Source Distribution

junkie-rfglab-2023.10.2.tar.gz (18.3 kB view hashes)

Uploaded Source

Built Distribution

junkie_rfglab-2023.10.2-py3-none-any.whl (18.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page