Prostate segmentation and surface reconstruction

From MIPAV
Revision as of 17:07, 20 March 2013 by Olga Vovk (Talk | contribs)

Jump to: navigation, search

This page contains instructions on how to perform MRI prostate segmentation and surface reconstruction in MIPAV. The algorithm facilities the validation of multi-parametric MRI with histopathology slides from radical prostatectomy specimens and targeted biopsy specimens. It employs the technique that combines image processing and computer aided design to construct a high resolution 3D prostate surface from MRI images in three orthogonal views with non-isotropic voxel resolution.

The algorithm outline is shown below (TBD).

Image types

The algorithm could be applied to the following image types (TBD). In order to use the segmentation tool, the image dataset must contain 3 orthogonal images centered at prostate center, similar to the sample image dataset provided via this link.

Sample image dataset

The sample image dataset provided by NCI can be downloaded using this link (TBD). The data included into the data set are orthogonal MR images obtained from a 3.0 T whole-body MRI system (Achieva, Philips Healthcare).

T2-weighted MR images of the entire prostate were obtained in three orthogonal planes (sagittal, axial and coronal) using the following settings:

  • Scan resolution of 0.2734x0.2734x3.0 cubic millimeters,
  • Field of view - 140 mm,
  • Image slice dimension 512x512.

The center of the prostate is the focal point for the MRI scan. To reduce the scan time, a lower refocusing pulse of 100 degrees was used for sagittal and coronal images, which alters the contrast on these images compared to the axial images.

Applying the algorithm

Applying the algorithm involves the following steps:

  1. Opening 3 orthogonal images and delineating VOIs (manually or using VOI from the the test image dataset);
  2. Prostate segmentation using Automatic B-Spline Registration algorithm;
  3. Prostate surface reconstruction;
  4. 3D Visualization and STL surface generation.

Opening images and delineating VOIs

Axial image

Open an axial image. Use File > Open image (A) from disk menu. If you are using the test image dataset provided, open the img_ax_83.xml file.

Draw 3 polygon/polyline VOIs. Use the Polygon/Polyline VOI tool PolylineVOI.jpg from the MIPAV toolbar.

For example, for the test image dataset provided:

  1. Draw the mid slice VOI first, on slice #12;
  2. Then draw the apex VOI, on slice #6;
  3. And finally, draw the last VOI on the base slice #19.
Draw 3 three orthogonal VOIs delineating a prostate. Draw the mid-slice VOI (slice #12), draw the apex VOI on slice #6 and the base slice VOI on the slice # 19

Smooth VOIs

In the Smooth VOI dialog box, check the "Replace Original Contour" box, and set "Number of interpolation points" to 100. Click “OK”

After delineating VOIs, we need to smooth each VOI. In order to do this, select each VOI and call the Smooth VOI dialog box available from the main MIPAV menu (VOI > Smooth VOI).

In the Smooth VOI dialog box, check the "Replace Original Contour" box, and set "Number of interpolation points" to 100. Click “OK”. Repeat for all 3 contours.

Sagittal and coronal images

Repeat the same process of delineating and smoothing VOIs for both sagittal and coronal images. for the test image dataset provided, the saggital image is img_sag_83.xml and the coronal image is img_cor_83.xml.

Example

In the image dataset provided, VOIs files are already available for all 3 types of images (axial, saggital and coronal). Under the image dataset directory, one can find 3 orthogonal images and corresponding VOIs:

Orientation Image file VOI file
axial img_ax_83.xml voi_ax_83.xml
coronal img_cor_83.xml voi_cor_83.xml
saggital img_sag_83.xml voi_sag_83.xml

The VOIs from the provided image dataset were drawn by clinical researchers, and verified by radiologist expert at NCI. For experimental purposes, we could recommend performing quick VOIs copying instead of manually drawing all three VOIs for all 3 image files.

How to copy VOIs

  1. Using MIPAV, open the same image twice, and open the VOIs file for the extra opened image. Let's name the first opened image the source image and the second opened image the extra image.
  2. From the MIPAV toolbar, use the Link Images tool LinkImages.jpg to link the two images. Please, make sure to open the same image slice on each image, i.e. #12, before linking the images.
  3. Slide through the two images in parallel mode.
  4. Consequently open slices 6, 12, and 19 and make sure to copy 3 corresponding VOIs from the extra image to the source image.
  5. After finishing copying the three VOIs, unlink the two images.
  6. Close the extra image.
  7. Use smooth dialog to smooth the VOIs contours to 100 points.
  8. Repeat the same procedure for all three, axial, sagittal and coronal images.

Concurrent automatic MRI prostate segmentation

Use VOI->Prostate VOI->semi-auto BSpline to run the prostate segmentation dialog
Prostate segmentation dialog box

We will use the semi-automatic segmentation dialog to segment the MRI prostate. Before proceeding, please, make sure you open 3 orthogonal images with VOIs.

Automatic B-Spline registration guided MRI prostate segmentation

  • From the MIPAV main menu, use the VOI->Prostate VOI->semi-auto BSpline menu to run the Prostate Segmentation dialog.
  • The dialog box appears.

Note that the drawn VOIs slice numbers are automatically populated in the dialog box.

  • In the Prostate Segmentation dialog, the Registration B-Spline radio check box is selected by default.
  • Click OK to start the concurrent automatic prostate segmentation procedure.
  • The algorithm begins to run and segmentation results appear on the screen and in the console window.
  • For each named VOIs based mask, the console window shows the number of voxels and volume.

Created VOIs are used for the surface reconstruction step. Each VOI contour has 100 points.

MIPAV console window
Axial image VOIs:  number of voxels = 333795  volume = 74871.586 mm^3
Sagittal image VOIs:  number of voxels = 340633  volume = 76405.41 mm^3
Coronal image VOIs:  number of voxels = 320149  volume = 71810.766 mm^3
time elapse = 1  mins  55  sec
 

Saving VOIs

To save each segmented VOI, select the VOI first, and then call the Save VOI dialog box.

Save the VOIs as .xml files. E.g. use the following names for the axial, sagittal, and coronal VOIs respectively: voi_ax_new.xml, voi_sag_new.xml and voi_cor_new.xml


Merging VOIs

to form a cloud points set used for surface reconstruction, we need to merge 3 VOIs (axial, coronal and sagittal) in DICOM space.

  1. To merge VOIs, choose the VOI->Prostate VOI->Merge VOIs menu. The Merge VOIs dialog box appears.
  2. In the dialog box, select 3 saved VOIs files.
  3. Specify the final point set data file (.ply), which combines 3 VOIs into a single cloud point set. For example, give it the following name "merged_VOI.ply".
  4. Click Save to save.

Surface reconstruction

We provide a unified dialog to use the Ball-Pivoting and Poisson surface reconstruction algorithms to build the smooth 3D surface with the generated point cloud dataset.

Input - the final point set data file (merged_VOI.ply);

Output - the final surface file (prostate_surface.ply) and the coarse surface output file (bpt_output.ply)

  1. To open the Surface Reconstruction dialog box, use the VOI->Prostate VOI->Surface Reconstruction menu.
  2. Use the .ply file (e.g. merged_VOI.ply) as an input.
  3. In the dialog box, the Ball-pivoting and Poisson parameters are set to defaults which could be modified by the user.
  4. Click Save to start the surface reconstruction algorithm. The algorithm begins to run. For a could created from 3 100-point VOIs the surface reconstruction algorithm run time is approximately 1 minute.
  5. The output file is the final surface .ply file. The default file name is "prostate_surface.ply", but it can be changed by the user. To change the file name use the Choose button.

Note: The coarse surface output generated after running the Ball-Pivoting algorithm. The surface is constructed with many holes left. The Poisson algorithm takes the coarse surface as input, and finishes up with a final smoothed prostate surface.

3D Visualization and STL surface generation

After generating the smoothed prostate surface, the MIPAV GPU based 3D visualization software is used to prepare the surface data for 3D printing. The axial image is used to visualize the prostate surface. This is because the apex and base VOIs contours of axial image might exceed the sagittal and coronal image boundary. Thus, the axial image is the best to hold the final generated prostate surface.