Page MenuHomePhabricator

surface generated from segmentation has holes
Closed, ResolvedPublic

Assigned To
None
Authored By
neuhaus
Dec 8 2009, 5:12 PM
Referenced Files
F407: SurfaceAndImageSize.jpg
Dec 16 2009, 5:10 PM
F406: holes-in-segmentation.jpg
Dec 8 2009, 5:13 PM
Subscribers

Description

  • manual segmentation using the Segmentation view, then open segmentation node context menu and chose "Create polygonal model" or "create smoothed poly model"

-> the resulting model has holes.

Source image was Pic3D.pic
segmentation is available here: /home/jochen/temp/pic3d-segmentation-poly-holes.pic

see attached screenshot.

Event Timeline

neuhaus added a subscriber: neuhaus.

holes in the surface that was created from the segmentation

holes-in-segmentation.jpg (439×345 px, 32 KB)

The holes occur at at area where the segmentation reaches the border planes of the segmentation-image (see attached screenshot).

SurfaceAndImageSize.jpg (505×841 px, 45 KB)

Could be that I selected "Auto crop segmentation" before creating the surface. This would explain the holes.

In AutoCropImageFilter::ComputeNewImageBounds() m_RegionIndex and m_RegionSize should be changed to a value increasing the bounding volume by one pixel. This way the generated surface will not contain any holes, unless it is directly located at the border plane of the original image.

[SVN revision 21093]
FIX (#3145): increasing cropped image size to close holes while generating a surface

To close the holes while generating a surface after copping the segmentation I modified QmitkSegmentationView. Added the method IncreaseCroppedImageSize() to pad the image after cropping.

Trying to resize the image in AutoCropImageFilter did not work. Strange side effects occurred within QmitkImageStatisticsView.