CemrgApp
CemrgApp copied to clipboard
Extracted surface mesh from segmentation has a hole
Prerequisites
- [X] Checked the wiki board for common solutions: https://github.com/CemrgAppDevelopers/CemrgApp/wiki
- [X] Checked that your issue isn't already filed: https://github.com/search?q=+is%3Aissue+user%3ACemrgAppDevelopers
- [] Are you providing the log? https://github.com/CemrgAppDevelopers/CemrgApp/wiki/Troubleshooting
Description
In cases where the segmentation reaches an edge of the image, the resulting surface comes with a hole. This has occurred in the scar plugin where a surface mesh is generated from a segmentation.
Proposed solution
I have implemented in branch feature/plugin/atrialfibres on bb3bcee a solution which pads the images with two voxels of zeros at the moment of converting to Nifti (CemrgCommonUtils::ConvertToNifti). This has been tested successfully in a couple of cases.
The question here would be whether this should be the case for absolutely every image that goes through CemrgCommonUtils::ConvertToNifti. Thoughts @OrodRazeghi ?
´´´