Skip to content

This repository contains macros, scripts and teaching material for quantitative image analysis using ImageJ Fiji and Python

License

Notifications You must be signed in to change notification settings

dwaithe/generalMacros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

General Macros for Fiji (ImageJ)

This collection of macros is to help with tricky or interesting problems using the image analysis package Fiji (ImageJ). For more information about Dominic and his projects please refer to his main homepage.

General Requirements:

Macros written for Fiji/ImageJ. If don't have Fiji, you can download it here: imagej.net/Fiji/Downloads


Contents

  • Macro script for fitting FWHM along a line.
  • Macro script for fitting 2D Gaussians (Diagonally covariant)
  • Macro script for converting a folder of images to another format.

Macro script for fitting FWHM along a line.

Script location in GIST: WHM_along_line_v1.ijm.
Example file to test script: 2.lif.

Description:

A bulk FWHM measuring algorithm was designed and written using ImageJ macro language. Using the ImageJ interface the user defines a line using the Segmented line tool which follows the contour of the GUV to be measured. The algorithm is then run and will interpolate along the user-defined line and calculates points at regular intervals (3 pixel gap). At each interpolated point on the line a perpendicular lines is drawn 40 pixels in length and centred on the interpolated line. Along each of these perpendicular lines the intensity values are sampled and a Gaussian curve is fit using the ImageJ curve fitting plugin. The parameters of each curve are then output and the FWHM calculated for each curve (2sqrt(2log(2)*sigma), where sigma of Gaussian fit).


Macro script for fitting 2D Gaussians (Diagonally covariant)

Script location in GIST: 2D_GaussFit.ijm.
Example file to test script:2D_Gaus_sig4.png.

with example file:

alt text alt text

Description:

This script includes a rough feature detection using the in built Find Maxima algorithm and then fine 2D Gaussian algorithm to fit Gaussians within square patch regions. This macro is special because the ImageJ/Fiji curve fitting API only supports 1-D curve. I get around this by linearising the equation. The equation is for isotropic (spherical) or anistropic (longer in x/y) diagonally covariant Gaussians but not fully covariant Gaussians (anisotropic and rotated), I will include that in another script. There are further instructions and parameters in the macro itself. Based on https://en.wikipedia.org/wiki/Gaussian_function two-dimensional Gaussian function.


Macro for converting a folder of images to another format.

Script location in GIST: file_converter.ijm.

Description:

Simple example script which shows how to convert .lsm files from one folder into another folder and save as ome.tiff

About

This repository contains macros, scripts and teaching material for quantitative image analysis using ImageJ Fiji and Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published