Getting Started with Fiji/ImageJ
Helen Wilson
hwilson23@wisc.edu
Adapted from work by Edward Evans, Michael Nelson, Ellen Dobson, and many others
Who am I?
Outline:
What is ImageJ/Fiji?
Wayne Rasband
Curtis Rueden
Fiji is just ImageJ
https://fiji.sc
Use a search engine
What’s it for? What’s the point?
IMAGES ANSWER QUESTIONS (and maybe create more)
How do we know what to look at?
Generally…
https://www.youtube.com/watch?v=kor9E3Qen28
Images
Regions of Interest (ROI)
Measurements
What is a digital image?
Generating scientific digital images
Output
A closer look: Images are pixels, pixels are values
Notice inverted LUT (colorscale)
Bit Depth - Binary Representation
4 bits = 4 places, 16 combinations
Visualizing image bit depth through gradients
32-bit
16-bit
8-bit
Don’t trust your eyes with image bit depth
Adapted from: https://gregbenzphotography.com/photography-tips/8-vs-16-bit-depth-photoshop/
Visualizing image bit depth through “resolution spheres”
8-bit
16-bit
32-bit
Courtesy of Edward Evans
What other metadata do you have?
A Note on Artifacts
QUALITY IN = QUALITY OUT
Developing an Analysis Workflow
https://imagej.net/imaging/principles
FIJI Basics
The Main Window
Getting Started page of the ImageJ wiki
The Main Window
CTRL + L: Search Bar
Edit ▶ Options ▶ Search Bar... ▶ Pressing L focuses the search bar
Staying Up-To-Date
Not this one!
https://imagej.net/plugins/updater
Staying Up-To-Date
https://imagej.net/update-sites/following
What to do if you have analysis questions…
How do we analyze images in FIJI?
Data Visualization
2D, 3D, Hyperstacks
Look up tables (LUTs)
Image color selection
FIJI - Simulate Color Blindness
BioVoxxel Plugin
Profile Plots
Get to Know Your Data…
ImageJ User Guide: Analyze
What would cause this histogram?
A real example of bit depth loss
Thresholding Segmentation
Masks from thresholds may need adjustments…
Cell Image courtesy of Kasia Wiesh, Skala Lab UW-Madison
Analyze Particles
Take Measurements
Background Subtraction - Gaussian Filters
Adapted from Pete Bankhead: https://petebankhead.gitbooks.io/imagej-intro/content/chapters/filters/filters.html#sec-filters_gaussian
Input
Gaussian blur (σ = 5)
Blur Image - Input Image
https://forum.image.sc/t/consensus-on-subtract-background-built-in-or-other/7061
2D Gaussian Subtraction Script
https://github.com/elevans/fiji-scripts/
Background suppression: Mean * Input image
Input
Mean filter
(radius = 5)
Input * Mean
Nuclei 1
Nuclei 3
(Mean*input) Threshold Comparison
StarDist - Object Segmentation
Source: https://github.com/stardist/stardist
Additional info: https://stardist.net/index.html
Labkit - Pixel Classifier
Source: https://github.com/juglab/labkit-ui
Additional Info: https://imagej.net/plugins/labkit/
Scripting in FIJI
Why are scripts useful?
They facilitate reproducible science…
Supported Languages:
Groovy, ImageJ Macro, Python(Jython), JavaScript, Ruby(JRuby), Lisp(Clojure), R(Renjin), Java, BeanShell, Scala
Scripting in FIJI...
ImageJ Macro language
Built-in Macro Functions list
Batch Processing
https://imagej.net/scripting/batch
Batch Processing Within Code
Macro language examples
Variables: User input statements:
Functions and calling functions:
Trackmate - Cell Tracking
Source: https://github.com/trackmate-sc/TrackMate
Additional Resources:
https://imagej.net/media/plugins/trackmate/trackmate-manual.pdf
Figure Making in FIJI
BioVoxxel Plugin
Figure Creation Macro
Image.sc Forum
Helpful Resources:
https://imagej.net/learn/user-guides
https://imagej.net/events/presentations
Acknowledgements
Get Involved!
Thank You!
Questions?
Share your results
Preparing microscopy figures and workflows for publication (in review)
FigureJ for creating accurate publication figures
QuickFigures - also for creating publication figure panels
Reproducible image handling by Kota Miura and Simon F Nørrelykke
Additional Resources:
• ImageJ macros https://imagej.nih.gov/ij/developer/index.html
• In depth Fiji and BioImage Analysis- Video series by Robert Haas
• ImageJ with a focus on macros and scripting - Video
• Introduction to Image Analysis (Interactive) https://bioimagebook.github.io/
• Overview: from modality to analysis https://www.bioimagingguide.org/
• Just for fun, intro to convolutions (Relevant to deep learning among other things)
• Preparing microscopy pictures and workflows for publication (in review)
• Fundamentals of data visualization (great resource!)
• Tutorials list on the ImageJ website
• Hitchhiker’s guide to image analysis software
• Another FIJI workshop GitBook
• ChatGPT - not always great for ImageJ specific functions, but file system and basic coding, fantastic.
• Integrated Python guide for image analysis, contains even more resource links
Other software
Trainable Weka Segmentation plugin
Create labels
Select features (Variance)
Train a machine learning algorithm
Get segmentation masks
Tracking in Fiji
Fiji Plugin = TrackMate
Single particle tracking plugin
Simple/sensible user interface
Segmentation / filtering / particle-linking processes visualized in 2D or 3D
MaMuT for big data!
Follow along - download the sample data and
Install StarDist and CSBDeep plugins
For further questions: hwilson23@wisc.edu