| 40 | } |
| 41 | |
| 42 | void ClearImageBuffer(mitk::Image* image) |
| 43 | { |
| 44 | if (image->GetDimension() == 4) |
| 45 | { //remark: this extra branch was added, because MultiLabelSegmentation instances can be |
| 46 | //dynamic (4D), but AccessByItk by support only supports 2D and 3D. |
| 47 | //The option to change the CMake default dimensions for AccessByItk was |
| 48 | //dropped (for details see discussion in T28756) |
| 49 | AccessFixedDimensionByItk(image, ClearBufferProcessing, 4); |
| 50 | } |
| 51 | else |
| 52 | { |
| 53 | AccessByItk(image, ClearBufferProcessing); |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | const mitk::MultiLabelSegmentation::LabelValueType mitk::MultiLabelSegmentation::UNLABELED_VALUE = 0; |
no test coverage detected