Input: 3D image volume in matlab
Say we have a image volume stored in MATLAB as a 3-dimensional matrix, as shown by the figure above. Run the following command to save it as a .fib file.
The above matlab command stores the image volume in a MAT V4 format that can be loaded in DSI Studio. The maximum loadable size of the image is around 200-by-200-by-200. Volume larger then this may causes error, and you may use the following code to reduce the size in half for each dimension. (if your image volume is loadable, ignore the following commands).
Open DSI Studio to load the fib file, then you can see the images loaded. To render the surface, adjust the fiber threshold and select from the top menu [Regions]->[Whole Brain Seeding]. The color of the surface can be changed from the color button in the upper left-hand window, and opacity of the rendered surface can be further adjusted from the options provided in the right option window, as shown in the following figure. You may visualize a cross section by the instruction mentioned in here.
DSI Studio loaded with an image volume.
You may also loaded an ROI and visualize it together with the surface rendering. The ROI can be stored in a MATLAB matrix and use the following command to save it as a ROI file.
This ROI file can be loaded in DSI Studio from the top menu [Regions]->[Open], and its color can also be changed from color buttons in the upper left hand corner window. Changing the opacity of the rendering can help visualize the ROI along with the surface.
To create the rotation GIF, select from top menu [View]->[Save Rotation Images]. Assign the file name such as W.bmp, and specify number of frames in one cycle (e.g. 60 frames in one rotation cycle). This will save several BMP files in the directory. To create a GIF from these BMP files, execute the following matlab command in the directory storing the BMP files:
The exemplary GIF is shown in the following: (click it to see how it rotates)