# Bioimage Analysis Wiki

### Sidebar

EMBL BioImage Data Analysis

EuBIAS

NEUBIAS

Popularity Ranking

 RT @helenajambor: Credit where credit is due! One could also say Matthäus Mittasch from the Kreysing lab shows how heat can induce flows in… About 2 mins, 20 secs ago by: Kota Miura (@cmci_) RT @empleo_mid: Puesto: 1 PhD student position available for "Image analysis of cardiac development in the mouse" - CNIC https://t.co/0AfJ8 … About 14 hours, 41 mins ago by: Kota Miura (@cmci_) RT @CanonMedicalEDI: Five #vacancies currently open: Image Analysis Scientist, Software Engineer (various) & IT Administrator. Rewarding #H… About 1 day, 16 hours ago by: Kota Miura (@cmci_) @haesleinhuepf @ReynaudEmmanuel @BioImagingUK @BBSRC @NEUBIAS_COST ... and fun! About 1 day, 16 hours ago by: Kota Miura (@cmci_) RT @thewtex: @cmci_ @ProjectJupyter @UCBIDS @stefanvdwalt @cziscience @thefreemanlab @ctrueden @FijiSc @cmci_ sorry about the quality. Here… About 1 day, 16 hours ago by: Kota Miura (@cmci_) @thewtex @ProjectJupyter @UCBIDS @stefanvdwalt @cziscience @thefreemanlab @ctrueden @FijiSc thanks! About 1 day, 16 hours ago by: Kota Miura (@cmci_)
blogtng:blogtop
Algorithm FRAP Fiji ImageJ ImageJ Plugin ImageJ Plugin 3Dviewer Imaris Java Javascript Python R bias blog dokuwiki fiji google imagej java libraries matlab meetings neubias news papers python references software webadmin

# Fiji 3D Viewer in Windows

3DViewer is a great plugin that enables interactive viewing of 3D structure. It has many useful functions including 3D time lapse visualization.

The plugin has one problem when used in some of Windows XPs (not in Vista, Win7, Mac OSX), and the symptom is like this:

On start up, the rendered volume is zoomed-up too much, so that one could not find where the object is. Zooming tool (magnification tool from the menu bar) also does not work, so one must adjust the zooming level from scripts.

Similar problem is reported here.

By the way, a test for the Java3D is OK (could be tested via some pages such as here).

Below is a javascript that does this. Zooming level could be adjusted by changing the value in the line 12.

importPackage(Packages.ij3d);
importPackage(Packages.javax.media.j3d);
importPackage(Packages.javax.vecmath);

imp = IJ.getImage();
StackConverter(imp).convertToGray8();
univ = new Image3DUniverse();
univ.show();

t3d = new Transform3D();
t3d.setScale(0.002);
c.applyTransform(t3d);


Alternatively, one could also change the zooming from the menu. Following is an example of doing so.

1. adjust the zooming factor by [Transformation > apply transform] and setting the affine transformation matrix.
2. some example affine transfromation matrix (only scaling)
1. 0.001 0.0 0.0 0.0 0.0 0.001 0.0 0.0 0.0 0.0 0.001 0.0 0.0 0.0 0.0 1.0
2. 2.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 1.0
3. 0.5 0.0 0.0 0.0 0.0 0.5 0.0 0.0 0.0 0.0 0.5 0.0 0.0 0.0 0.0 1.0
3. then [view > center > selected content] to place the content in the center of the canvas.

I made further tests of 3Dviewer with various windows machines and in most cases, it worked fine.
“flybrain” sample 3D stack, accessible via File > Open Sample > Flybrain, was used. THis 3-channel image was separated with channels and used the green channel stack for the test.

1. win7 64x: OK
2. vista 32x: OK
3. XP 32x, service pack 3: not OK, zooming problem
4. XP 32x, service pack 3: OK
5. XP 64x, service pack 2: OK

Comparison of Java3D properties in XP machines (3 to 5) is in a table (link).

I still cannot figure out why No.3 machine is not working. A hint could be that the GUI tool for zooming (magnifying glass tool) does not work at all in case of machine No.3, but in all other cases it worked fine.

## another case of problem, with DirectX

Another case of problem with 3Dviewer I encountered was a bit more straight forward. When DirectX was uses as render, then the object does not appear in the canvas. For this, one could start-up fiji with some option as below to force use OpenGL. In my case, I wrote a single line batch file to start-up fiji.

c:\Fiji.app\fiji-win32 -Dj3d.rend=ogl --console --mem=500m --

More details on options are available here.