| 358 | } |
| 359 | |
| 360 | void ClearImageBuffer(mitk::Image* image) |
| 361 | { |
| 362 | if (image->GetDimension() == 4) |
| 363 | { //remark: this extra branch was added, because MultiLabelSegmentation instances can be |
| 364 | //dynamic (4D), but AccessByItk by support only supports 2D and 3D. |
| 365 | //The option to change the CMake default dimensions for AccessByItk was |
| 366 | //dropped (for details see discussion in T28756) |
| 367 | AccessFixedDimensionByItk(image, ClearBufferProcessing, 4); |
| 368 | } |
| 369 | else |
| 370 | { |
| 371 | AccessByItk(image, ClearBufferProcessing); |
| 372 | } |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | mitk::Image::Pointer mitk::CreateLabelMask(const MultiLabelSegmentation* segmentation, MultiLabelSegmentation::LabelValueType labelValue, bool createBinaryMap) |
no test coverage detected