Manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 16

DownloadManual
Open PDF In BrowserView PDF
Manual
1 3D RENDERER
1.1 CONTRAST

It is recommended to adjust brightness and contrast (i.e. a channels minimum and maximum
displayed value) appropriately for all image channels before starting the 3D Animation plugin. The 3D
plugin will pick these values up and use them as default values, which can then be fine-tuned to
adjust the rendering outcome to one’s needs.
Like contrast adjustments in ImageJ/Fiji, the intensity contrast for the 3D rendering is specified by a
minimum (3) and maximum (5) displayed intensity value for each channel. Additionally, the input
interval between minimum and maximum can be mapped to the output interval non-linearly using a
gamma parameter (4). Opposed to 2D contrast adjustment, for 3D rendering each pixel is
transparent to some degree, depending typically on its intensity. This dependency is typically called
the transfer function. Analogously to intensity contrast, the transfer function is specified by a
minimum value (6) (for full transparency), a maximum value (8) (fully opaque) and a gamma
parameter (7) for non-linear mapping of the interval in-between.
The channel weight sliders (9, 10) are used to adjust the contributions of each channel to the final
output image. Double-clicking the weight sliders opens a color chooser dialog for adjusting a
channel’s color.
The combo box (1) at the top is used for switching between channels. Additionally, there is a button
(2) at the top right to reset the rendering settings to the default values.
Three different rendering algorithms are implemented (11):




Independent transparency: Each channel is processed individually, without influencing the
other channels.
Combined transparency: The transparencies of multiple channels influence each other
Maximum intensity projection: There is no transparency involved at all, the maximum
intensity of each channel along the ray of sight is taken for the output pixel

In more detail: The independent and combined transparency modes both use standard front-to-back
ray-casting with the following formulas:
𝑐 = (1 − 𝛼) ∗ 𝛼𝑖 ∗ 𝑐𝑖
𝛼 = (1 − 𝛼) ∗ 𝛼𝑖
Where c is the output intensity of a ray (i.e. pixel),  is its output opacity, and ci and i are the
corresponding input values at discrete sampling positions along each ray.
Independent transparency mode applies these formulas separately for each channel, combined
transparency mode uses sums up the values of I across all channels before advancing to the next
ray sample.
Here is a comparison of the different rendering algorithms (left: independent transparency, middle:
combined transparency, right: maximum intensity projection; contrast settings have been adjusted
to the corresponding algorithm):

1.2 TRANSFORMATION

The transformation panel displays the transformation parameters of the rendered 3D object and
provides also means for entering exact values. An alternative way for transforming an object is
interactively via the mouse (the HAND tool must be selected in the ImageJ/Fiji menu bar):




Dragging with the left mouse button rotates an object. If the alt key is pressed, rotation is
restricted to either the horizontal or the vertical axis.
Dragging with the left mouse button and holding the SHIFT key pressed translates an object
The mouse wheel is used for zooming. When zooming with the mouse, the object is
automatically translated such that the mouse pointer keeps pointing at the same structure,
i.e. one zooms into the mouse pointer.

There is a reset button which resets all transformation parameters to their default values.

1.3 CROPPING

The sliders for x, y and z crop the data along their original axes. The near/far slider restricts rendering
along the view direction, i.e. rendering starts a certain distance away (from the user’s eyes) and only
continues for a certain distance.
Furthermore, any of the selection tools offered by ImageJ/Fiji can be used to draw a selection into
the 3D rendering window. Clicking the ‘Cut off ROI’ button will then remove the parts of the volume
which are currently projected into the selection area.

1.4 OUTPUT

In the output panel, the size of the rendered image can be modified. Additionally, display of the
bounding box of the rendered object can be turned on and off, and its parameters (line width and
color) can be adjusted (clicking the ‘Properties’ button). If the bounding box check box is selected,
the front clipping plane (see the Cropping section above) will also be indicated (its intersection with
the bounding box, to be precise).
Additionally, the background in the 3D rendering window can be modified by changing the
background color in ImageJ/Fiji tool bar.

1.5 ANIMATION

Currently, there is only a single button in the animation panel, which will show the Animation Editor
(see below).

2 CREATING ANIMATIONS
2.1 CREATING A SIMPLE ROTATION
To start composing animations, click on “Start text-based animation editor” button (see above). A
very basic example for an animation is a plain rotation around a single axis. The appropriate
animation text is
From frame 0 to frame 180 rotate by 360 degrees horizontally

To actually render the animation, click on the “Run” button. A new movie window opens, and new
frames are added as they were rendered.
For a quick preview of the movie, adjust the frame rate ( Image  Stacks  Animation  Animation
Options…, or simply right-click the play button next to the time slider) and start playback by clicking
on the play button.

2.2 EXPORTING MOVIES
There are a number of ways to export movies. My favorite way is to save them as uncompressed AVI
(using ImageJ’s  File  Save As  AVI… command) and then encode this temporary video file using a
proper video encoding software such as ffmpeg. The command line that I am using is one of the
following two versions
ffmpeg.exe -i input.avi -vcodec wmv2 -qscale:v 1 -f asf output.avi
ffmpeg.exe –i input.avi –vcodec mpeg4 –qscale:v 1 output.mp4

The first line seems to work also for older versions of PowerPoint.
For Microsoft Windows, there exists also a nice GUI frontend for FFMPEG, ffe.

2.3 STRUCTURE OF THE ANIMATION LANGUAGE
Each sentence (i.e. instruction) consists of a time interval, an action, corresponding action
parameters and optionally of one of the easing keywords for non-linear transitions.

2.3.1 The time interval
The time interval is given in number of frames, there exist two variants, for either specifying a single
time point or a time range:
From frame  to frame  …
At frame 

Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 16
Language                        : de-DE
Tagged PDF                      : Yes
Author                          : Windows User
Creator                         : Microsoft® Word 2016
Create Date                     : 2018:11:08 10:08:56+01:00
Modify Date                     : 2018:11:08 10:08:56+01:00
Producer                        : Microsoft® Word 2016
EXIF Metadata provided by EXIF.tools

Navigation menu