MCPcopy Create free account
hub / github.com/MITK/MITK / ClearImageBuffer

Function ClearImageBuffer

Modules/Multilabel/src/mitkLabelSetImage.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
58const mitk::MultiLabelSegmentation::LabelValueType mitk::MultiLabelSegmentation::UNLABELED_VALUE = 0;

Callers 4

InitializeMethod · 0.70
InsertGroupMethod · 0.70
ClearGroupImageMethod · 0.70
ClearGroupImagesMethod · 0.70

Calls 1

GetDimensionMethod · 0.45

Tested by

no test coverage detected