SkillAgentSearch skills...

FASTMAP

ImageJ Plugin for Flexible Atlas Segmentation Tool for Multi-Area Processing

Install / Use

/learn @dterstege/FASTMAP
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

FASTMAP

FASTMAP (Flexible Atlas Segmentation Tool for Multi-Area Processing) is a tool for the registration of biological images to custom atlas plastes and the segmentation of labels of interest within atlas regions. This tool operates as an ImageJ Plugin that draws upon versatile and powerful image analyses tools in ImageJ and presents them as a clean, concise, and easy to follow plugin.

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

FASTMAP was demonstrated at the 2021 Tissue Clearing and Expansion Workshop hosted by the Dynamic Brain Circuits UBC and BCREGMED. This virtual workshop was recorded, with the FASTMAP presentation beginning at the 13:55 mark in the linked YouTube video. Tech demo begins at 30:14.

Current Version: V 1.1.1

Updates since V 1.0.1:

  • No more need to manually combine ROIs in ROI manager
  • Automatically saves registered ROI Sets
<a name="toc"/>

Table of Contents

| Section | Description | | ------------- | ------------- | | 1. Installation Instructions | How to install on macOS and Windows. | | 2. Image Processing Tutorial | How to process a sample image set | | 3. Atlas Plate Customization | How to build your own atlas plates for custom projects | | 4. Troubleshooting | Potential complications and how to overcome them | | 5. Citation | How to cite FASTMAP | | 6. Contact Us | Where to reach us with questions |

<a name="installation"/>

1. Installation Instructions

FASTMAP was designed with ease-of-use at the forefront of our minds. The installation process reflects this with a simple 3-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 the Appropriate Version of FASTMAP. Download the appropriate version of FASTMAP for your operating system: macOS or Windows. Linux has not yet been tested.

  • 1.3 Install Plugin in ImageJ. Before installing, see settings section to determine whether the plugin should be modified in any way to better suit your project prior to installation. Once satisfied with the settings, open ImageJ and select "Plugins > Install...". Navigate to the newly downloaded version of FASTMAP and allow this to save to the ImageJ Plugins folder.

Note: If installing on FIJI, ensure you use the "Install..." command rather than the "Install Plugin Command".

<a name="processing"/>

2. Image Processing Tutorial

The following guide will outline how to process a dataset using FASTMAP:

INITIALIZATION

  • 2.1 Images. FASTMAP has been optimized for 8- and 16-bit .tif files, with the label of interest being in an image file which is separate folder from the channel to be used as a reference during atlas registration (DAPI, propidium iodide, autofluorescence, etc.).

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

  • 2.2 File Organization. Files should be organized under a common "parent folder". This parent folder should contain at least two subfolders: one containing the "label images" (the to-be-segmented labels) and a second containining the "registration images" (images to be used as references during atlas registration). Folders can contain all images for an entire project, as long as the images for each subject are in continuous strings and corresponding files appear in the same alphabetical order in both folders.

  • 2.3 Atlas Organization. FASTMAP is highlighted by its applicability to a nearly limitless range of biological samples, irrespective of sample type or orientation. This is due to the flexibility of the atlas plate registration and generation. To facilitate immediate use, sample atlases have been provided.

To use these atlas plates, download the provided atlases and unzip only the main folders (ex. "Sagittal.zip") and not the nested zipped folders (ex. "RoiSet1.zip"). Keep these unzipped main folders in an easilly accessible "Plates" folder.

RUNNING THE PLUGIN

  • 2.4 Run Plugin. With image files and atlas plates in proper formats and organizations, the plugin may now be ran (open ImageJ, "Plugins > FASTMAP"). The user will be prompted to navigate to the parent folder containing both image channels. A second prompt will ask the user to navigate to a folder containing the desired atlas plates for the analysis.

  • 2.5 Image Assignment. A dialogue window titled FASTMAP will populate and prompt the user to identify which of the subfolders in the parent folder contains the registration images and which contains label images.

<img width="409" alt="Screen Shot 2021-07-15 at 2 33 50 PM" src="https://user-images.githubusercontent.com/44174532/126400951-12f6e4ee-d234-4b37-b867-d9c235d25956.png">
  • 2.6 Range and Analysis Type. The plugin will then display the number of files in the registration and label subfolders. Output data will be appended based upon the range inputted during this step, so if images from multiple samples are in the same folder the the range of the current sample should be defined.This window also asks which type(s) of analysis should be applied to the image set. Analysis types are as follows:

    • Volumetric Analysis: reports the total area of the region, the summed area of all labels within the region, and the percentage of the region that is comprised of labels.
    • Object Counts: reports the total area of the region and number of objects counted within each region.
<img width="373" alt="Screen Shot 2021-07-15 at 2 34 45 PM" src="https://user-images.githubusercontent.com/44174532/126401020-497e00d7-6514-41ec-97f0-967bbf64d012.png">

Both the volumetric analysis and object counts analysis types have been written to use the default auto-thresholding parameters of ImageJ. If working with already binarized labels as inputs or raw images in which the default thresholding is insufficient, see the settings section for information on how to modify the plugin to better suit the input images.

At the bottom of this window, the user will be asked whether ROIs have already been gathered for this range of images. If images have previously been processed through FASTMAP and the ROIs have been saved, this option can be chosen to conserve the previously registered ROIs. For more information on saving ROIs, click here.

  • 2.7 Choose Registration Plate. A composite image displaying all plates from the selected atlas will populate on the screen. Drag this to the right side of the screen before selecting 'OK', otherwise it will be hidden by the next image to populate the screen. This image is the working registration image and a prompt will ask which atlas plate it most closely resembles.
<img width="779" alt="Screen Shot 2021-07-15 at 2 35 41 PM" src="https://user-images.githubusercontent.com/44174532/126401056-a410c5ac-b629-4b60-8c7e-ee8d97916b7c.png"> <img width="1459" alt="Screen Shot 2021-07-15 at 2 40 49 PM" src="https://user-images.githubusercontent.com/44174532/126401228-1eebafdb-dd2f-429d-b0f6-cb377cd83376.png">
  • 2.8 Automated resizing. FASTMAP can be applied to images collected using a wide variety of microscopy techniques. Furthermore, it can be applied to images of different sizes and resolutions. If the user is looking at the same group of regions using multiple microscopy types or imaging magnifications, the plugin can scale atlas plates to limit the extent to which regions need to be manually resized and manipulated. This linear transform is initiated by drawing a rectangle around the sample in the image.
<img width="1458" alt="Screen Shot 2021-07-15 at 2 38 11 PM" src="https://user-images.githubusercontent.com/44174532/126401086-298d93be-2756-44c3-81ea-e1be6e65b507.png">
  • 2.9 Adjusting Registration. Missized and often off-centered regions will then populate on the registration image and a window titled ROIManager will appear. Using this ROI Manager, select all regions (click on the region at the top of the list, hold the 'shift' key, then click on the region at the bottom of the list), next select "More... > OR(Combine)", then click "add(t)". Finally, click 'OK'.
<img width="1463" alt="Screen Shot 2021-07-15 at 2 43 41 PM" src="https://user-images.githubusercontent.com/44174532/126401267-f10c330f-7601-42ca-badb-cf1b36f44388.png">

One-by-One, regions will resize and come to the center of the image. Move, adjust, or delete the ROIs as needed - clicking 'OK' on the dialogue window once satisfied with each region. No need to adjust any dummy regions, but do not delete until after all regions have been adjusted.

<img width="1460" alt="Screen Shot 2021-07-15 at 2 51 17 PM" src="https://user-images.githubusercontent.com/44174532/126401308-9ecdb049-3118-426e-a670-79a7eedc7896.png">

With all regions adjusted, any ROIs which aren't essential to the analysis may now be deleted from the ROI Manager.

<img width="1461" alt="Screen Shot 2021-07-15 at 4 46 57 PM" src="https://user-images.githubusercontent.com/44174532/126401330-dba0c5b0-d147-4212-b9c4-6649a1157fae.png"> <a name="save"/>

After adjusting all ROIs, select all ROIs in the ROI Manager window and save the ROI set using a name specific to that image. This will allow for the adjusted ROIs to be called upon at a later date should the user wish to apply different thresholding parameters or a different analysis type to the image.

<a name="settings"/>

OTHER NOTES

  • **2.10 Setti

Related Skills

View on GitHub
GitHub Stars24
CategoryDevelopment
Updated4mo ago
Forks6

Languages

ImageJ Macro

Security Score

92/100

Audited on Nov 13, 2025

No findings