Difference between revisions of "Prostate segmentation and surface reconstruction"

From MIPAV
Jump to: navigation, search
m (Concurrent automatic MRI prostate segmentation)
m
Line 86: Line 86:
 
# Repeat the same procedure for all three, axial, sagittal and coronal images.
 
# Repeat the same procedure for all three, axial, sagittal and coronal images.
  
=== Concurrent automatic MRI prostate segmentation ===
+
== Concurrent automatic MRI prostate segmentation ==
 
[[File:SemiAutoBSpliine.jpg|200px|thumb|left|Use VOI->Prostate VOI->semi-auto BSpline to run the prostate segmentation dialog]]
 
[[File:SemiAutoBSpliine.jpg|200px|thumb|left|Use VOI->Prostate VOI->semi-auto BSpline to run the prostate segmentation dialog]]
 
[[File:ProstateSegmentationDialogSLiceNumbers.jpg|200px|thumb|right|Prostate segmentation dialog box]]
 
[[File:ProstateSegmentationDialogSLiceNumbers.jpg|200px|thumb|right|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.     
 
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 ====
+
=== 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.   
 
* From the MIPAV main menu, use the VOI->Prostate VOI->semi-auto BSpline menu to run the Prostate Segmentation dialog.   
 
* The dialog box appears.  
 
* The dialog box appears.  
Line 109: Line 109:
 
  </nowiki>
 
  </nowiki>
  
===== Saving VOIs =====
+
==== Saving VOIs ====
  
 
To save each segmented VOI, select it first, and then call the Save VOI dialog box.  
 
To save each segmented VOI, select it first, and then call the Save VOI dialog box.  
Line 116: Line 116:
  
  
 +
=== Merging VOIs ===
  
 +
We need to merge the three VOIs in DICOM space to form a cloud points set. To merge VOIs, call  the VOI->Prostate VOI->Merge VOIs menu. The Merge VOIs dialog box appears. 
 +
 +
In the dialog box, select three saved VOIs files. Specify the final point set data .ply file, which combines 3 VOIs into single cloud point set.  For example, give it the following name "merged_VOI.ply". Click Save to save.
 
[[Category:Help]]
 
[[Category:Help]]
 
[[category:Help:Stub]]
 
[[category:Help:Stub]]

Revision as of 19:45, 19 March 2013

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 it 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

We need to merge the three VOIs in DICOM space to form a cloud points set. To merge VOIs, call the VOI->Prostate VOI->Merge VOIs menu. The Merge VOIs dialog box appears.

In the dialog box, select three saved VOIs files. Specify the final point set data .ply file, which combines 3 VOIs into single cloud point set. For example, give it the following name "merged_VOI.ply". Click Save to save.