imagej_macros_and_scripts

Imagej macros and scripts

ImageJ macros and scripts written at the imaging facility MRI. Have a look at the project’s wiki to get more information about the image analysis tools.

Biological Image Analysis Toolsets

3D_Nuclei_Clustering_Tool

Analyze the clustering behavior of nuclei in 3D images. The centers of the nuclei are detected. The nuclei are filtered by the presence of a signal in a different channel. The clustering is done with the density based algorithm DBSCAN. The nearest neighbor distances between all nuclei and those outside and inside of the clusters are calculated.

Adipocytes Tools

The Adipocytes Tools help to analyze fat cells in images from histological section.

MRI_Analyze_Alignment_of_Muscles_Tool

The tool uses the Directionality plugin to measure the main direction of the structures in the image and the dispersion. It is used in this context to analyze to which degree the muscles in the image are vertically aligned. The tool allows to run the Directionality plugin in batch-mode on a series of images. The direction-histograms and the measurements are exported as csv-files.

Analyze_Calcium_Signals_In_Spines

Analyze calcium signals in dendritic spines. The images consist of time-series of calcium signals. Each image contains a selection that marks the point of stimulation. The tool finds the region to analyze close to the point of stimulation. It measures the intensity of the calcium signal in the whole region of interest and in the segmented spots.

Analyze_Cardiomyocytes

Analyze images from second harmonics microscopy of cardiac muscle cells (cardiomyocytes). The tool measures the length of the sarcomeres using the FFT of the image and the degree of organization of the sarcomeres by using the dispersion provided by the Directonality command of FIJI. Although the input images can be stacks only the middle slice is used for the analysis.

MRI_Analyze_Comets_Tool

The tool measures the areal number density of comets in cells.

Analyze_Complex_Roots_Tool

This tool allows to analyze morphological characteristics of complex roots. While for young roots the root system architecture can be analyzed automatically, this is often not possible for more developed roots. The tool is inspired by the Sholl analysis used in neuronal studies. The tool creates a binary mask and the Euclidean Distance Transform from the input image. It then allows to draw concentric circles around a base point and to extract measures on or within the circles. Instead of circles, which present the distance from the base point, horizontal lines can be used, which present the distance in the soil from the base-line.

Analyze Spheroid Cell Invasion In 3D Matrix

The tool allows to measure the area of the invading spheroïd in a 3D cell invasion assay. It can also count and measure the area of the nuclei within the speroïd.

Analyse Spots Per Protoplast

The tool counts the spots per protoplast. If a third channel is provided it is used to filter out detected protoplasts that do not have exactly one nucleus.

Arabidopsis Seedlings Tool

The Arabidopsis Seedlings Tool allows to measure the surface of green pixels per well in images containing multiple wells. It can be run in batch mode on a series of images. It writes a spreadsheet file with the measured area per well and saves a control image showing the green surface that has been detected per well.

Cluster Analysis of Nuclei Tool

Analyze the clustering behavior of nuclei in DAPI stained images. The nuclei are detected as the maxima in the image. Using a threshold intensity value, maxima below the threshold are eliminated. The resulting points are clustered using the DBSCAN algorithm. The nearest neighbor distances between all nuclei, and those outside and inside of the clusters are calculated.

Cochlea Hair Cell Counting

The aim of this tool is to count the hair cells in sections of 200µm from the apex of the cochlear to its base. The tool needs two types of input images: the 3d stack of the hair cells and a binary mask created from this stack by using the spot detection algorithm of Imaris (Bitplane). After the detection of the spots the background has been set to 0 and the volumes of the spots to 255 and the image has been exported as a tif-series. The tool allows to make the MIP-projections of the two kinds of input images in batch mode.

Count Axonal Projections Tool

Count the number of axonal projections that cross a given line. The tool detects and counts the maxima along a line-selection, for example a segmented line.

Count Satellites Tool

The tool detects and counts the neurons and the neurons with satellite cells.

MRI_Count_Spot_Populations_Tool

The tool detects and and counts the spots (or blobs) in an image. It has been created for the counting of bacteria colonies in in Petri-dishes. It separates the spots into two populations and counts each population individually. The populations are separated by the area of the spots. The tool uses expectation maximisation clustering from the weka software.

MRI_Create_Synthetic_Spots_Tool

The tool creates images of 2D-spots for the evaluation and benchmarking of spot detection tools. Two populations of spots with different means and variations of the size can be created in the same image.

MRI Dynamic Zones Analyzer

Find and segment zones in which the intensity changes over time. Classify the zones into zones with increasing, decreasing, constant, u-shaped and n-shapes intensity profiles.

MRI_Fibrosis_Tool

Measure the relative area of sirius red stained fibrosis. The tool uses the colour deconvolution plugin from Gabriel Landini.

Filament_Morphology_Tool

The tool count filaments and measure their areas and forms. It specially measures the geodesic diameter of the objects and its curvature, counts the branches and measures their lengths.

Filament_Tools

Calculate the area-fraction of the image filled with (septin) filaments.

FLIM FRET_Volume_Tool

The tool measures in FLIM-FRET images, for each cell, the total volume of the cell and the volume occupied by values in a given range. It displays the positions of the values in the range in a result image.

Foci-Per-Nucleus-Tool

The tool detects, counts and measures the foci per nucleus. It reports the number of small, medium sized and big fosci per nucleus. It also measures the area and mean intensity of the nuclei.

MRI_g-ratio_Tools

In images from transmission electron microscopy of the optic nerve, calculate the g-ratio of the axons. The pg-factor and the ag-factor will be measured. The pg-factor is the inner perimeter of the neuron divided by the outer perimeter including the myelin. The ag-factor is the square-root of the area of the inner surface divided by the area of the outer surface including the myelin.

Growth_Cone_Visualizer

The Growth Cone Visualizer Software is an imageJ-marco toolset that visualizes the morphological variability of neuronal growth cones.

MRI_Heights_of_Surfaces_Tools

The tools help to compare the height in the z-dimension of the signals in different channels. It calculates the heights normalized by the maximum height in a reference channel. Only places where the signal is not zero and the reference channel maximal are taken into account.

Intensity Per Nucleus Tool

The tool segments the nuclei in the dapi or hoechst channel of the image and measures the mean intensity per nuclei in the other channels of the image. The macro can be applied recursively to all images in a folder and its subfolders.

Intensity Ratio Nuclei Cytoplasm Tool

The tool calculates the ratio of the intensity in the nuclei and the cytoplasm. It needs two images as input: the cytoplasm channel and the nuclei channel. The nuclei channel is used to segment the nuclei. The measurements are made in the cytoplasm channel after the background intensity has been corrected.

Measure_Border_And_Spots_Tool

The tool counts the number of spots (foci) per nucleus and measures the intensity, form, size and position of the spots. It also optionally measures the intensity in the membrane of the nucleus.

Measure Intensity Without Spots

Measure the signal in a channel in areas defined by the stained nuclei in another channel. Remove the bright spots when measuring the signal.

MRI Neurite Analyzer

The toolset helps to segment neurites, measure the distances on the neurites to the closest soma, assign each neurite to a soma and to measure the FISH-signal on the neurites.

Measure_Nuclei_And_Membranes

The tool measures the membranes and nuclei, of cells segmented with cellpose, in all channels but the nuclei-channel.

Phase Contrast Cell Analysis Tool (Trainable WEKA Segmentation)

The tool allows to segment cells in non fluorescent microscopy images using the trainable WEKA segmentation. It allows to run a preprocessing that crops and converts images, to apply a classifier created with the Trainable Weka Segmentation plugin to a folder containing images and to open the images in a folder as a stack in the “Trainable Weka Segmentation plugin” to create a classifier.

MRI_Plot_Tool

Calculate the first derivative of a plot and the zero-crossings of the derivate.

Radial Movement Tool

The tool takes a results table of tracking data (as created by Trackmate) and calculates the difference of the distances between the start point of the track and a given point c and the end point of the track and c, i.e. how much the particle has moved away from c (negative if it moved towards c).

MRI_Root_Hair_Tools

The tool allows to measure the diameter of the root and the density of the root hair.

Skin_Tools

The Skin Tools allow to analyze masks of skin tissue that touch the right and left border of the image. The length of the lower border line is measured. For each extremum on the lower border line of the mask the length of a vertical line across the mask is measured. The advanced analysis allows to measure the interdigitation index and the filaggrin thickness. The filaggrin thickness is calculated using a number of random lines perpendicular to the border across the mask.

Spine Analyzer

The tools allow to semi-automatically segment dendritic spines in 3D+t images and to measure their volumes and the intensities of the signal within in different channels over time.

MRI_Spot_Coloc_Tool

The tool counts the number of co-localized spots in two channels over time. It also exports the intensity of each spot over time.

Spot_Distances_Tool

The tool detects spots and measures the nearest neighbour distances between the spots in the image.

Synthetic_Tracking_Data_Generator

The tool allows to simulate particles moving away from a center, moving towards a center or particles diffusing around a center.

Track_Microtubules_Tool

The tool allows to track the ends of fluorescently labelled microtubules, which are becoming shorter and to measure the speed of the movement of each end. It also creates kymograms and plots distance-per-time.

Transfection_Efficiency_Tool

The tool helps to measure the transfection efficiency. It reports the percentage of transfected cells in the image. It has tools to manually correct the segmented nuclei (merge and split).

Width-Profile-Tools

Tools to estimate the width-profile of an object given as a binary mask image. Calculate the width profile of the object as local thickness, as voronoi distance between two parts of the contour-line, perpendicular to the axis of inertia or at regular distances using rays perpendicular to a centerline segment.

Witness based drift correction Tool

The tool corrects a constant drift in a time-series. When the objects in the images move, drift-correction can be difficult. Here a second channel is provided, in which there are no moving objects, however in order to be able to acquire images fast enough, for the second channel only the images of the first and the last frame are taken.

Wound Healing Coherency Tool

The Wound Healing Coherency Tool can be used to analyze scratch assays. It measures the area of a wound in a cellular tissue on a stack of images representing a time-series.

Wound Healing Tool

The MRI Wound Healing Tool can be used to analyze scratch assays. It measures the area of a wound in a cellular tissue on a stack of images representing a time-series.

Workflow and Conversion Toolsets

MRI_Convert_Nikon_Andor_To_Hyperstack

Because of the big size of the images the microscope cuts images along the time dimension into multiple files each with a number of frames. This tool will for each position and wavelength convert the image. It will do a z-projection, concatenate all time-chunks and save the resulting image. The user has to provide the number of slices in the z-dimension. The pixel size and time interval can automatically be set when provided by the user.

MRI_Convert_Opera_To_Hyperstack

The tool converts images taken with the Opera into hyperstacks. The image names are in the form r02c04f01p01-ch1sk1fk1fl1.tiff where r is the row, c the column, f the field, p the z-position and ch the channel. The tool converts all images in the input folder.

MRI_Image_Conversion_Tools

The tools allow to convert .lei or .lif and .lsm files to tif-files. It works on a folder containing the input images. Results are written into a sub-folder tif. Each channel of a multi-channel file is saved separately. Besides this an rgb-snapshot of the image is saved. A z-projection can optionally be applied to the images.

Load-Corresponding-Images

The tool allows to open for each image a second image with the same name from another folder. It displays the two images next to each other. It provides navigation through the list of images.

Copy_Random_Data_Tool

Randomly copy files from a number of input folders to create a test dataset.

MuVi SPIM_Convert_Tools

The Muvi-SPIM-Convert_Tools help to convert your hdF5 files comming from a MuVi-SPIM setup.

MRI_ND_To_Hyperstack

The tools converts images in the .nd format to ImageJ hyperstacks. The user selects an .nd file. An image can consist of multiple positions, frames, z-slices and channels. Each position is converted into an ImageJ hyperstack and written into a subfolder of the folder containing the input image.

NDPI export regions

The tool exports rectangular regions, defined with the NDP.view 2 software from the highest resolution version of the image and saves them as tif-files.

MRI_Opera_export_tools

The tool stitches images from the Opera Phenix HCS System. It reads the Index.idx.xml file to pre-arrange the images and then stitches and fuses them using the Grid/Collection stitching-plugin. Images are stitched by plane and channel. Z-stacks and multi-channel images can optionally be created. Projections can also be create.

Single Plugin Tools

Discrete_Histogram_Entropy_Tool

The tool calculates the discrete histogram entropy H(X), where w is the width of the i-th histogram bin and f the frequency of the value xi.

Distance_Between_Minima_Tool

The tool measures the mean distance between the minima in the profile plot.

MRI_DoG_Filter

The DoG-filter is a bandpass filter. It is calculated as: Gauss_s1(img) - Gauss_s2(img) where img is the input image, Gauss_s1 is a Gaussian-filter with sigma s1 and Gauss_s2 is a Gaussian-filter with sigma s2 (s2>s1).

Find_and_Subtract_Background_Tool

The tool finds the background intensity value and subtract it from the current image. It searches for the maximum intensity value around pixels that are below or equal to the minimum intensity in the image plus an offset.

MRI_Random_Selection_From_Table_Tool

The tool allows to create a sub-population of your data by randomly copying a configurable portion of lines from the active table to a new table.

Time_Reverse_Hyperstack_Tool

The tool reverses the order of the frames in a hyperstack.

Scripts

Segmentation of mitotic spindles

Allows to segment a batch of mitotic spindles and extract measurements from a microtubules staining.

MRI_Spiral_Mosaic_Tool

The tool copies the images in a stack into a new image and places them in a spiral order, i.e. the first image is in the middle, the second right of the first, the third above the second, the fourth left of the third, and so on.

Macros

Measure_Rois

The macro calls the Measure Roi plugin for each selected ROI in the roi-manager or for all the ROIs in the roi-manager, if none are selected.