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

Method DisplayImageInfo

Modules/Core/src/Controllers/mitkStatusBar.cpp:107–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void StatusBar::DisplayImageInfo(Point3D point, itk::Index<3> index, TimePointType time, ScalarType pixelValue)
108 {
109 if (m_Implementation == nullptr)
110 return;
111
112 std::ostringstream stream;
113 stream.imbue(std::locale::classic());
114 stream.precision(2);
115
116 WriteCommonImageInfo(stream, point, index, time);
117 stream << "; Pixel value: ";
118
119 if (fabs(pixelValue) > 1000000 || fabs(pixelValue) < 0.01)
120 stream << std::scientific;
121
122 stream << pixelValue;
123
124 m_Implementation->DisplayGreyValueText(stream.str().c_str());
125 }
126
127 void StatusBar::DisplayImageInfo(Point3D point, itk::Index<3> index, TimePointType time, const char* pixelValue)
128 {

Callers

nothing calls this directly

Calls 2

WriteCommonImageInfoFunction · 0.85
DisplayGreyValueTextMethod · 0.45

Tested by

no test coverage detected