Skip to content

ZadorLaboratory/rotatingBrain_FIJI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Rotating brain in FIJI

This is a description of how to create a rotating brain in FIJI

1. Open the 3D image in FIJI

Example image: Allen CCFv3 annotation map 25 um/voxel

image

2. Change the 3D image to RGB

Method 1: Image > Color > Stack to RGB

Method 2: Type > RGB Color

(Skip this step may result of automatic contrast adjustment in later step)

3. Open 3D Viewer

Plugins > 3D Viewer

Resolution is better when the Resampling factor = 1, but the computation time is longer. 
Sometimes if the stacks is very big, Resampling factor = 1 may not work (program freezes)

With resampling factor = 1, it will give you the 3D version of the image as below

4. Record 360 deg rotation

View > Record 360 deg rotation

Once the recording started, you can see the brain is rotating. When it finished, the output is a timelapse movie

Note: You can record a Movie with bigger view by simply maximizing the window to full screen before start recording.

5. Adjust the rotating speed

Right click the 'play' button, you can see options for adjusting speed and other features

6. Export

Method 1: to .gif: File > Save As > Gif...
  When there are too many colors, the color of gif may be off. You can try Method 2 described below.
  
Method 2: to .avi: Plugins > Bio-Format > Bio-Format Exporter and export to .avi
          to .mp4: open the avi in Windows Video Editor > New Video Project > Add the avi to 'Project library' > drag it to the 'Storyboard' > Select 'Finish Video' and save it as mp4 file.

Additional Notes

1. When there are multiple channels, the images can be changed into Hyperstacks. You can adjust the LUT/Brightness/Contrast for individual channels. Once the adjustments are done, convert it to RGB.
2. If you feel the movie is silight too dark or there something you want to adjust, you can use ImageJ function within a for loop in Macro. 
Example for brightness adjustment:
    for (i = 1; i <=180; i++) {
        setSlice(i);
        setMinAndMax(0, 150);
    }

Additional information

Allen CCFv3 download

Link: http://help.brain-map.org/display/mouseconnectivity/API
You can find the links here:

image

Get brain outline

You can get the brain outline by getting the edge between zero and non-zero voxel in Allen annotation map. (Optional: after getting the edge, filter the edge with a 3D average filter.)
This can be done in ImageJ Macro or other language/software. 

Example in ImageJ:
    setMinAndMax(0, 1);
    run("Apply LUT", "stack");          // Thresholding zero and non-zero voxel
    run("Find Edges", "stack");         // Get outline
    run("8-bit");                       // (For adjusting 3D transparentcy using intensity, 8-bit saturation = 255)
    run("Mean 3D...", "x=5 y=5 z=5");   // Average filter
    setMinAndMax(0, 400);               // (For adjusting 3D transparentcy)
    run("RGB Color");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors