1 of 48

CZI Workshop I

August 20th, 2021

Ellen Dobson

ellen.dobson@wisc.edu

2 of 48

Center for Open Bioimage Analysis

3 of 48

Introduction to ImageJ

Getting Started with the ImageJ User Application

4 of 48

What is ImageJ?

  • Open source tool for scientific analysis
  • End user application, a tool for image science
  • Reusable set of libraries & shared framework for image analysis
  • Multiple ‘flavors’ of ImageJ…

ImageJ

ImageJ2

Fiji

5 of 48

What is ImageJ?

  • Open source tool for scientific analysis
  • End user application, a tool for image science
  • Reusable set of libraries & shared framework for image analysis
  • Multiple ‘flavors’ of ImageJ…

ImageJ

ImageJ2

Fiji

6 of 48

What is ImageJ?

  • stable version of ImageJ(1.x) which has been under continuous development since 1997
  • developed in 1997 as a cross-platform version of NIH Image
  • ImageJ2 includes the latest version of ImageJ(1.x) and a legacy layer for backwards compatibility
    • transparently converts between IJ1 and IJ2 data structures as needed

7 of 48

Fiji is just ImageJ

  • Is an image processing package—a "batteries-included" distribution of ImageJ2
  • FOR USERS:
    • easy to install
    • has an automatic update function
    • bundles a lot of plugins
    • offers comprehensive documentation.
  • FOR DEVELOPERS:
    • open source project hosted in a Git version control repository
    • access to the source code of all internals, libraries and plugins
    • eases the development and scripting of plugins.

8 of 48

What can Fiji do?

Tracking

Segmentation

Big Data

Stitching

and more...

9 of 48

Learn how to fish...

10 of 48

Teach me how to fish...

11 of 48

Teach me how to fish...

12 of 48

Let’s open/run Fiji...

13 of 48

CTRL + L: Search Bar

Edit ▶ Options ▶ Search Bar... ▶ Pressing L focuses the search bar

14 of 48

The Main Window

  • Tip: click on the status bar
  • Tip: right / double-click on Tools

Getting Started page of the ImageJ wiki

15 of 48

Staying Up-To-Date

16 of 48

Staying Up-To-Date

17 of 48

Opening Data…

Drag and Drop

File ▶ Open…

File ▶ Import

▶ Bio-Formats

18 of 48

Image Window

Zoom factor (use +/- keys)

Image Type

Image Size in physical units (and pixels)

Dataset positions

File ▶ Open Samples ▶ Mitosis (26MB, 5D Stack)

19 of 48

Bit Depth & Pixel Types

  • 8-bit = 256 levels
  • 12-bit = 4096 levels
  • 16-bit = 65536 levels

Qualitative/”Just looking”

Quantitative/Measurements

20 of 48

Lookup Tables (LUTs)

  • Image ▶ Lookup Tables
  • Image ▶ Colors ▶ Display LUTs

21 of 48

Helpful LUTs

Grays

HiLo

Royal

22 of 48

Get to Know Your Data…

  • File ▶ Open Samples ▶ Boats
  • Analyze ▶ Histogram

What would cause this histogram?

23 of 48

Profile Plots

  • File ▶ Open Samples ▶ Blobs (Shift + B)
  • Draw a line using the Line tool
  • Analyze ▶ Plot Profile

  • Image ▶ Stacks ▶ Plot Z-Axis Profile...

ImageJ User Guide: Plot Profile

24 of 48

2D Visualization

  • File ▶ Open Samples ▶ Mitosis (26MB, 5D Stack)
  • Image ▶ Lookup Tables ▶ Magenta
  • Image ▶ Color ▶ Channels Tool (Shift + Z)
  • Image ▶ Properties… (Shift + P)

25 of 48

2D Visualization: Brightness & Contrast

Defining grey value range to be visualized

  • File ▶ Open Samples ▶ Boats
  • Image ▶ Adjust ▶ Brightness/Contrast… (Shift + Command + C)

26 of 48

Thresholding

Isolate grey values of interest

File ▶ Open Samples ▶ Blobs (Shift + B)

Image ▶ Adjust ▶ Threshold…

Which method is best?

Image ▶ Adjust ▶ Auto Threshold, Try All

27 of 48

Regions of Interest (ROI)

  • File ▶ Open Samples ▶ Clown (14K)
  • Freehand selection tool
  • Circle the clown nose

  • Analyze ▶ Measure (Ctrl + M)

Can you draw the same exact circle on a new clown??

28 of 48

Regions of Interest (ROI)

  • Select a nose
  • Press T or Analyze ▶ Tools ▶ ROI Manager (Ctrl + T)
  • Select other clown image
  • Click the ROI in manager or Edit ▶ Selection ▶ Restore Selection

29 of 48

Plugins...

What is a plugin?

A special-purpose software component that extends functionality

There are four tiers of plugins:

  1. Core ImageJ plugins (1000+)
  2. Core Fiji plugins (1000+)
  3. Plugins installable from Update Site.
  4. Additional manually-installed plugins available from various online sources

30 of 48

Colocalization in Fiji...

Fiji Plugin = Coloc 2

  • pixel intensity correlation over space methods of Pearson, Manders, Costes, Li and more
  • scatterplots, analysis, automatic thresholding and statistical significance testing

31 of 48

Registration in Fiji...

32 of 48

Registration in Fiji...

33 of 48

Registration in Fiji...

34 of 48

Registration in Fiji...

35 of 48

Tracking in Fiji

Fiji Plugin = TrackMate

Single particle tracking plugin

Simple/sensible user interface

segmentation / filtering / particle-linking processes visualized in 2D or 3D

extensible...

36 of 48

3D Visualization in Fiji

SciView

plugin for 3D visualization of images and meshes

Uses scenery as rendering backend

Supports rendering to VR headsets via OpenVR

37 of 48

Segmentation in ImageJ

PART ONE:

The Basics of Segmentation & Machine Learning using ImageJ

38 of 48

What is Segmentation?

39 of 48

What is Segmentation?

The partitioning of a digital image into multiple segments.

40 of 48

Common assumptions/requirements:

  1. Do you have overlapping objects? And do you care?

41 of 48

Common assumptions/requirements:

2. Do you want to count objects? Or do you want to segment regions?

42 of 48

Common assumptions/requirements:

3. What are the shapes of your objects? Tubes? Blobs? Clouds?

43 of 48

Common assumptions/requirements:

4. What modality was used? And how does the signal look?

44 of 48

Segmentation using Machine Learning...

45 of 48

Segmentation using Machine Learning...

46 of 48

Segmentation using Machine Learning...

47 of 48

Segmentation using Machine Learning...

48 of 48

Helpful Resources:

  • Help from the community - Scientific Community Image Forum:

  • ImageJ User Guides:

  • Slides from an excellent Segmentation presentation:

  • Additional workshops and presentations: