Difference between revisions of "Visualizing Images: Displaying images using the animate view"

From MIPAV
Jump to: navigation, search
(Created page with '== Displaying images using the animate view == <div style="font-style: normal; font-weight: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; tex...')
 
(Displaying images using the animate view)
Line 6: Line 6:
  
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 131. Animate Parameters dialog box <br /></font>'''</div>
+
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 27. Animate Parameters dialog box <br /></font>'''</div>
 
|-
 
|-
 
|
 
|
Line 12: Line 12:
 
|
 
|
 
<div class="CellBody">Changes the size of the dataset by the factor specified. </div> <div class="CellBody">Unlike magnification, the number of voxels used to replicate the image may change. For example, if you scale a dataset by a factor of 2, the image becomes twice the original size, and the number of voxels is squared.</div>
 
<div class="CellBody">Changes the size of the dataset by the factor specified. </div> <div class="CellBody">Unlike magnification, the number of voxels used to replicate the image may change. For example, if you scale a dataset by a factor of 2, the image becomes twice the original size, and the number of voxels is squared.</div>
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
 
|
 
|
 
[[Image:dialogboxAnimateParameters.jpg]]
 
[[Image:dialogboxAnimateParameters.jpg]]
|}<br clear="all" /><br /></font></div>
 
 
|-
 
|-
 
|
 
|
Line 42: Line 39:
  
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 132. Animate progress message<br /></font>'''</div>
+
|+ <div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 9pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 28. Animate progress message<br /></font>'''</div>
 
|-
 
|-
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
 
|
 
|
 
[[Image:messageAnimateProgress.jpg]]
 
[[Image:messageAnimateProgress.jpg]]
|}<br clear="all" /><br /></font></div>
 
 
|}
 
|}
  
Line 141: Line 135:
 
|}
 
|}
  
<br /></font></div>
+
<br />
  
 
==== Adjusting dataset display ====
 
==== Adjusting dataset display ====

Revision as of 16:10, 13 February 2012

Displaying images using the animate view

If you select the animate view, the software makes a copy of the image dataset and loads it into an image window showing the animate view. In animate view, like cine view, the software automatically advances through the entire image dataset. However, the animate view allows you to adjust the speed at which images are advanced. You can specify that images be displayed in forward or reverse order. You can also pause or stop the sequence.
To view an image dataset in animate view
1 Select Image > Views > Animate in the MIPAV window. The Animate Parameters dialog box (Figure 27) appears.

2 Type the scale factor that you want to use in the Scale factor box.
Figure 27. Animate Parameters dialog boxÂ

Scale factor
Changes the size of the dataset by the factor specified.
Unlike magnification, the number of voxels used to replicate the image may change. For example, if you scale a dataset by a factor of 2, the image becomes twice the original size, and the number of voxels is squared.

DialogboxAnimateParameters.jpg

Interpolation
Determines the intensity of the additional voxels using one of the three following methods:
Bilinear-Weighs the average of the four nearest voxels (to the newly interpolated voxel). The interpolated voxel is assigned the resulting intensity.
Bspline 3rd order-Weighs the average of the 27 nearest voxels (to the newly interpolated voxel).
Bspline 4th order-Weighs the average of the 64 nearest voxels (to the newly interpolated voxel).
OK
Applies the scale factor and interpolation to the image dataset according to the specifications in this dialog box.
Cancel
Disregards any changes that you made in this dialog box and closes this dialog box.
Help
Displays online help for this dialog box.

3 Select one of the three interpolation methods.
4 Click OK.
MIPAV transforms the dataset using the scale factor and interpolation method you indicated. A progress message (Figure 28) appears while the program constructs the animated file. It then loads a copy of the dataset in the Animate window.
.
Figure 28. Animate progress message

MessageAnimateProgress.jpg


Figure 133. Image window shown in the Animate viewÂ


{| align="center"

ZeroBasedAnimateDialog.jpg



|- | rowspan="2" colspan="1" |

File

| rowspan="1" colspan="2" |

Save Image as .avi-Saves the dataset as an AVI, or digital video, file.

|- | rowspan="1" colspan="2" |

Close Animate-Closes the Animate window.

|- |

Options

| rowspan="1" colspan="2" |

Show Z Slice Numbers-Displays, if selected, the slice number, or the frame number, on the lower left side of the image.

|- |

ButtonContinuousReverse.jpg Continuous reverse

| rowspan="1" colspan="2" |

Steps through all of the images in the dataset continuously in reverse without stopping at the speed specified in Desired frames per second.

|- |

ButtonReverse.jpg Reverse

| rowspan="1" colspan="2" |

Steps through all of the images in the dataset once in reverse at the speed specified in Desired frames per second.

|- |

ButtonForward.jpg Forward

| rowspan="1" colspan="2" |

Steps through all of the images in the dataset once in sequence at the speed specified in Desired frames per second.

|- |

ButtonContinuousForward.jpg Continuous forward

| rowspan="1" colspan="2" |

Steps through all of the images in the dataset continuously without stopping at the speed specified in Desired Frames per second.

|- |

ButtonForwardBackward.jpg Backward and forward

| rowspan="1" colspan="2" |

Steps through all of the images in the dataset in sequence and then in reverse continuously without stopping at the speed specified in Desired Frames per second.

|- |

ButtonPause.jpg Pause

| rowspan="1" colspan="2" |

Pauses the animation at the frame currently shown.

|- |

ButtonStop.jpg Stop

| rowspan="1" colspan="2" |

Halts the animation and redisplays the first image in the dataset.

|- |

ButtonMagnifyImage2.0x.jpg Magnify image 2.0X

| rowspan="1" colspan="2" |

Magnifies the image by 2.

|- |

ButtonMagnifyImage0.5x.jpg Magnify image 0.5x

| rowspan="1" colspan="2" |

Magnifies the image by one-half.

|- |

ButtonBrightnessContrast.jpg Set brightness/contrast

| rowspan="1" colspan="2" |

Specifies the brightness and contrast of the image. When you select this icon, the Brightness/Contrast dialog box opens. To change the brightness, slide the Brightness slider to the level desired and then click Apply. To change the contrast, slide the Contrast slider to the level desired and click Apply.

|- |

ButtonDelete.jpg Delete current slice

| rowspan="1" colspan="2" |

Removes the slice currently shown in this window from the image dataset.
Caution: The program does not allow you to undo slice deletion. Before you delete slices, you may want to have a backup of the complete image dataset to avoid losing images.

|- |

Frame number

| rowspan="1" colspan="2" |

Sets the first image slice shown to the frame, or slice, number that you specify. Notice that the frame number appears in the box to the right of the slider.

|- |

Desired frames per second

| rowspan="1" colspan="2" |

Specifies how many frames, or slices, should appear in 1 second. The read-only box to the right shows the actual number of frames per second your computer has achieved. The number of frames per second depends on the amount of memory accessible by the computer and CPU time.

|}


Adjusting dataset display

You can magnify or reduce the display of your dataset using the magnification icons. Use ButtonMagnifyImage2.0x.jpg , the Magnify image 2.0x icon, to enlarge the image to twice its current size.

Adjusting the brightness and contrast in images

To adjust the brightness and contrast in the image, do the following:
1 Click ButtonBrightnessContrast.jpg , the Brightness/Contrast icon, in the Animate window. The Brightness/Contrast dialog box (Figure 30) opens.
2 Move the Brightness slider to the position you want. Notice that the level of brightness changes on the image as you move the slider.
3 Move the Contrast slider to the desired contrast level. The contrast in the image changes as you move the slider.
4 Click Apply when you are finished. The image in the Animate window reflects the changes in brightness and contrast that you made.
5 Click ButtonClose.jpg , the close button at the top right of the dialog box, to close the dialog box.

Figure 134. Brightness/Contrast dialog boxÂ

Brightness
Specifies the level of brightness to apply to the image.

{| align="center"

DialogboxBrightnessContrast.jpg



|- |

Contrast

|

Specifies the level of contrast to apply to the image.

|- |

Apply

|

Applies the brightness or contrast you specified to the image.

|- |

Cancel

|

Disregards any changes that you made in this dialog box and closes this dialog box.

|- |

Help

|

Displays online help for this dialog box.

|}


Removing slices from image datasets

In the Animate window, you can also remove slices from the dataset. First, you need to find the slice that you want to delete. To find a slice number, do either of the following:
Select Options > Show Z Slice Numbers, which shows the slice number at the lower left of the image (refer to Figure 29 on page 40).
Move the Frame Number slider to the slice that you want to delete. The number appears in the box on the right of the slider.
Figure 135. In the Animate dialog box, the slice number appears in the information box beside the Frame Number slider, and the Desired Frames per Second information box shows the actual number of slices per second.


{| align="center"

ZeroBasedAnimateDialog.jpg



|}


Once you locate the slice that you want to remove, click ButtonDelete.jpg , the Delete icon. The slice is removed from the dataset.

Caution: The program does not allow you to undo slice deletion. Before you delete slices, you may want to have a backup of the complete image dataset to avoid losing images.

Playing a dataset "film"

Using the icons and buttons on the toolbar in the Animate window (Figure 29 on page 40), you can produce and play a dataset "film." To do so, complete the following steps:
1 Move the Frame number slider to the slice that you want to see first.
2 Move the Desired frames per second slider to indicate the speed at which images should be advanced or reversed.
3 Click the following buttons as appropriate:
Click ButtonForward.jpg , the Forward icon, to advance the image dataset forward through all of the images one time (one loop).
Click ButtonReverse.jpg , the Reverse icon, to advance the image dataset backward through all of the images one time (one loop).
Click ButtonContinuousForward.jpg , the Continuous Forward icon, to advance the image dataset forward through all of the images multiple times. To stop image advancement, you must press ButtonPause.jpg , the Pause icon, or ButtonStop.jpg , the Stop icon.
Click ButtonContinuousReverse.jpg , the Continuous Reverse icon, to advance the image dataset backward through all of the images multiple times. You must press the press ButtonPause.jpg , the Pause icon, or ButtonStop.jpg , the Stop icon, to stop image reversal.
Click ButtonPause.jpg , the Pause icon, to pause the image advancement or reversal.
Click ButtonStop.jpg , the Stop icon, to stop the image advancement or reversal.

File:MIPAV VisualizationTools89.gif


Note: As the images advance or reverse, you may notice that the desired frames per second and the actual frames per second differ. Although you can type any number in the desired frames per second, the actual speed at which the images advance depends primarily on your computer's processor speed.
4 Save the animate viewer file by selecting File > Save Image as .avi (AVI, or audio video interleaved, is a Microsoft multimedia format). The Choose Type of AVI File dialog box (Figure 32) opens.
5 Select a type of file.
6 Click OK. The program runs the animation sequence that you created, closes this dialog box, and then displays the Save dialog box.
Figure 136. Choose Type of AVI File dialog box

24-bit uncompressed RGB
An uncompressed RGB file, which uses 8 bits per color (red, green, blue).

{| align="center"

DialogboxChooseTypeofAVIFile.jpg



|- |

8-bit RLE compressed

|

A run length encoded (RLE) file that is converted to 8 bits and is compressed.

|- |

Quicktime movie

|

An Apple format.

|- |

Motion JPEG

|

A format that consists of motion JPEGs.

|- |

MPEG-4 version 2

| rowspan="1" colspan="2" |

Another compression format.

|- |

OK

| rowspan="1" colspan="2" |

Plays back the animated sequence that you created and then displays the Save dialog box for you to save the sequence.

|- |

Cancel

| rowspan="1" colspan="2" |

Disregards any changes that you made in this dialog box and closes this dialog box.

|- |

Help

| rowspan="1" colspan="2" |

Displays online help for this dialog box.

|}