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

Method InitializeHistogram

Modules/Core/src/DataManagement/mitkTransferFunction.cpp:246–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 void TransferFunction::InitializeHistogram(const Image *image)
247 {
248 HistogramGenerator::Pointer histGen = HistogramGenerator::New();
249 histGen->SetImage(image);
250 histGen->SetSize(256);
251 histGen->ComputeHistogram();
252 m_Histogram = histGen->GetHistogram();
253 m_Min = (int)GetHistogram()->GetBinMin(0, 0);
254 m_Max = (int)GetHistogram()->GetBinMax(0, GetHistogram()->Size() - 1);
255 }
256
257 void TransferFunction::PrintSelf(std::ostream &os, itk::Indent indent) const
258 {

Callers

nothing calls this directly

Calls 7

GetHistogramFunction · 0.85
ComputeHistogramMethod · 0.80
NewFunction · 0.50
SetImageMethod · 0.45
SetSizeMethod · 0.45
GetHistogramMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected