Skip to content

A repository containing ImageJ macros for the Snyder Lab

License

Notifications You must be signed in to change notification settings

boonepeter/snyder-imagej

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snyder-imagej

A repository containing ImageJ macros for the Snyder Lab.

imagej-macros are written in imagej macro language

python-macros are written in Jython

How to use

This is how I would recommend using these macros:

  • Download repository
    • As zip or using git clone https://github.com/boonepeter/snyder-imagej
  • Install or open Fiji
  • Open the desired script in Fiji
    • Drag and drop or File > Open
  • Click Run

Building your own macro

A good place to start:

  • Plugins > Macros > Record...
  • Open up and image and process it
  • File > New > Script...
  • Templates > ImageJ 1.x > Batch > Process Folder (IJ1 Macro)
  • Then copy your recorded macro into the function section
  • You will need to generalize some of your recorded macro so it will work
  • Add setBatchMode(true); before processFolder(input); to speed up your macro (ImageJ will not display images as it works)
  • AN IMPORTANT NOTE:
    • The macro recorder sometimes does not record certain settings if they are not changed. An example of this happens when you use run("Analyze Particles") on a binary image. This will measure all of the particles, but it will only output the measurements checked by the last user (or default). To make sure you get the measurements you want, you need to do Analyze > Set Measurements... and check what you want while the macro recorder is running. I would recommend you check settings like this while you are recording your macro so it will work later on.

Resources

Releases

No releases published

Packages

No packages published

Languages