All ObjectJ Examples

Zebrafish-Immunotest

25-Sep-2016

Norbert Vischer
Bacterial Cell Biology
University of Amsterdam

In Zebrafish embryos, the in vivo biocompatibility of microspheres is tested by analysing 4-channel hyperstacks with ImageJ and plugin ObjectJ.
The first channel is brightfield and shows the fish contour and the injection point, which is marked manually. In the fluorescence channels, the location and strength of the various immuno-reactions of the organism can be quantified.

Zebrafisch Immunotest Video (3:30 min, 7 MB, with sound)

A. Installation of ImageJ and ObjectJ:

  1. If not done yet, install ImageJ from: http://imagej.nih.gov/ij/

  2. If the ObjectJ plugin is already visible under menu Plugins, jump to (4).
    Otherwise, you can install ObjectJ as follows:
    Download objectj_.jar from https://sils.fnwi.uva.nl/bcb/objectj/download/current/
    Make sure objectj_.jar was not renamed (browsers may have the habit to add a suffix number if an older version already existed in the download folder).

  3. Drag objectj_.jar onto ImageJ's main window (which contains the tools).
    Confirm when ImageJ asks to store this plugin in the plugins folder, and relaunch ImageJ.

  4. You can choose Plugins> ObjectJ to make the ObjectJ menu visible, but the ObjectJ menu will appear anyway the first time you open an .ojj project file.

B. Preparation:


Fig 1
Fig 1: Project folder

C. Marking:


Fig 2

Fig 2: ObjectJ Tools (left) and Project Window

D. Measuring:

Choose ObjectJ> Calc Immuno Reaction

This will perform the following steps:

Choose ObjectJ>Save Project to save the new markers and results

Choose ObjectJ>Show/Hide Neighborhood [F2] to show/hide the injection point as small square, and evaluated neighborhood as white circle

Choose ObjectJ>Change Channel View [F3] several times to step through different views: red, green, red+green

Choose Image>Adjust>Brightness/Contrast to show max contrast inside image or current roi.


Fig 3

Fig 3:
Screenshot of three channels:
left: bright-field with orange marker at injection point; white neighborhood circle was shown via shortcut [F2]
center: GFP channel (macrophages), evaluation circle is centered around largest peak
right: mCherry channel (neutrophils) with its evaluation circle

Fig 4

Fig 4:
Screenshot of ObjectJ results:


Fig 5

Fig 5: Adjustable parameters:

To change parameters, choose ObjectJ>Show Embedded Macros, change indicated in Fig 5, then click button Install in ObjectJ and choose : ObjectJ> Save Project

Images to hyperstacks:

If you have single images, you can combine them to hyperstacks as follows:


//macro to arrange 4 individual images as Hyperstack
//in the order they appear under the Windows menu
//defining colors and slice labels:

macro "Four images to hyperstack"{
    if(nImages != 4) exit("exactly 4 images must be open");  
    run("Images to Stack", "name=Stack333 title=[]");  
    run("Stack to Hyperstack...", "channels=4 slices=1 frames=1");  
    colors = split("Grays Green Red Blue");  
    labels = split("BF Macrophages Neutrophils UV");  
    for (chn = 1; chn <= 4; chn++){  
        Stack.setChannel(chn);  
        run(colors[chn-1]);  
        setMetadata("label", labels[chn-1]);  
    }
}