| 90 | } |
| 91 | |
| 92 | mitk::Image::Pointer mitk::CloseRegionTool::GenerateFillImage(const Image* workingSlice, Point3D seedPoint, mitk::Label::PixelType& seedLabelValue) const |
| 93 | { |
| 94 | itk::Index<2> seedIndex; |
| 95 | workingSlice->GetGeometry()->WorldToIndex(seedPoint, seedIndex); |
| 96 | |
| 97 | auto fillImage = Image::New(); |
| 98 | fillImage->Initialize(workingSlice); |
| 99 | |
| 100 | AccessFixedDimensionByItk_n(workingSlice, DoITKRegionClosing, 2, (fillImage, seedIndex, seedLabelValue)); |
| 101 | |
| 102 | if (seedLabelValue == MultiLabelSegmentation::UNLABELED_VALUE) |
| 103 | { |
| 104 | return nullptr; |
| 105 | } |
| 106 | |
| 107 | return fillImage; |
| 108 | } |
| 109 | |
| 110 | void mitk::CloseRegionTool::PrepareFilling(const Image* /*workingSlice*/, Point3D /*seedPoint*/) |
| 111 | { |
nothing calls this directly
no test coverage detected