Skip to content

ImageJ Plugin for the generation of binary point masks for area approximations

License

Notifications You must be signed in to change notification settings

dterstege/CavalieriPointMask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

CavalieriPointMask

Cavalieri Point Mask is an ImageJ Plugin which converts images of biological tissues into masks of evenly spaced binary points for the sake of applying a Cavalieri-based point-counting approach to area approximation.

DAPImask Points not to scale - enlarged to highlight pattern

CavalieriPointMask was created by Dylan Terstege, a Neuroscience PhD candidate in the Epp Lab at the University of Calgary.

Table of Contents

section description
1. Installation Instructions How to install
2. Image Processing Tutorial How to process a sample image set
3. Troubleshooting Common issues and how to fix them
4. Contact Us Where to reach us with questions

Cavalieri Point Mask was designed with ease-of-use at the forefront of our minds. The installation process reflects this with a simple 4-step approach:

1.1 Install ImageJ. Ensure that ImageJ is installed. If it was not previously installed, it can be downloaded here.

1.2 Download CavalieriPointMask.ijm Download the CavalieriPointMask.ijm file to an accessible location

1.3 Check Plugin Settings. Check the settings of the plugin. If these are okay, procede to installing the program in step 1.4. If you would like to change anything, simply drag and drop the .ijm file into ImageJ and edit within the text window.

1.4 Install Plugin in ImageJ. Open ImageJ and select "Plugins > Install...". Navigate to the newly downloaded CavalieriPointMask.ijm file and allow this to save to the ImageJ Plugins folder.

2.1 Images. Cavalieri Point Mask has been optimized for 8- and 16-bit .tif files. It works best with a ubiquitous and uniform label. It has been successfully applied to DAPI-stained, propidium idodide-stained, and autofluorescence images.

If your images are not already in this format, ImageJ can rapidly convert image formats by selecting "Process > Batch > Convert...".

2.2 File Organization. Raw images should all be in a single folder nested within a parent folder. That parent folder should also contain an output folder where you would like your newly generated images to populate to.

2.3 Settings.

The plugin uses the following settings as default. These may need to be optimized for particular applications.

  • Thresholding Algorithm: "Triangle"
  • Size of Sigma in Gaussian Blur: "200"
  • Square Area in Pixels Accounted for by Each Point: "1156"

Searching any of these values in the txt file will show where adjustments may be made. The plugin will then need to re-installed on ImageJ

2.4 Processing Images

With optimized settings in place and the plugin installed, you can begin processing images. This is done by selecting the plugin from the plugin tab of ImageJ ("Plugin > CavalieriPointMask"). You will then be prompted to navigate the plugin to the parent folder which contains your input image folder and the empty output folder. The plugin will then ask to specify which folder is which, before batching through all of the input images. Once complete, a window will populate on the screen to let you know that processing is now complete.

This section will be updated with issues as they are brought to my attention.

  • Issue #1: "Instead of a mask of points in the shape of the biological sample, the plugin is outputting a mask in the negative space of the image outside the bounds of the sample"
  • Solution #1: Edit the .ijm file (for instructions on how to do this see here). Find and remove the following line:
"run("Invert LUT"); //toggle depending on image"

The macro can then be re-installed.

Contributors:

Principal Investigator:

*corresponding author

About

ImageJ Plugin for the generation of binary point masks for area approximations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published