SlicerRt / SlicerRT

Open-source toolkit for radiation therapy research, an extension of 3D Slicer. Features include DICOM-RT import/export, dose volume histogram, dose accumulation, external beam planning (TPS), structure comparison and morphology, isodose line/surface generation, etc.
https://slicerrt.org
127 stars 60 forks source link

Hardening transforming on segmentation is slow if master representation is planar contours #102

Closed lassoan closed 5 years ago

lassoan commented 5 years ago

How to reproduce:

Harden takes several minutes instead of just a few seconds.

See details here: https://discourse.slicer.org/t/harden-transform-on-large-segmentation-hangs-3d-slicer/5643/7

Sample data set: https://unioxfordnexus-my.sharepoint.com/:u:/g/personal/donc0432_ox_ac_uk/EWFRKBv6xYZLuHqmtEkvwR4Bn9vKHM0AJFlCh9wNLMHDsw?e=YQiLwa

cpinter commented 5 years ago

We observed that this only happens if the closed surface representation is visible (not sure if 2D or 3D is the reason). A possible solution is to use DisableModified in the ApplyTransform function in the segmentation node.

cpinter commented 5 years ago

Fixed in commit https://github.com/Slicer/Slicer/commit/3195e6d0bcd3ef29e383294a9b4e7ba13dfa9469