comparison Framework/Volumes/DicomVolumeImageMPRSlicer.cpp @ 1290:7def6ab2929f bugs/2020-02-invisible-slice

Removal of debugging logs
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 21 Feb 2020 15:20:29 +0100
parents 343aa1dfaa90
children ea6c2254536d
comparison
equal deleted inserted replaced
1289:343aa1dfaa90 1290:7def6ab2929f
82 std::auto_ptr<TextureBaseSceneLayer> texture; 82 std::auto_ptr<TextureBaseSceneLayer> texture;
83 83
84 { 84 {
85 const DicomInstanceParameters& parameters = volume_.GetDicomParameters(); 85 const DicomInstanceParameters& parameters = volume_.GetDicomParameters();
86 ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_); 86 ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_);
87
88 if (OrthancStone_Internals_dump_LoadTexture_histogram == 1)
89 {
90 LOG(INFO) << "+----------------------------------------+";
91 LOG(INFO) << "| This is not an error! |";
92 LOG(INFO) << "+----------------------------------------+";
93 LOG(INFO) << "Work on the \"invisible slice\" bug";
94 LOG(INFO) << "DicomVolumeImageMPRSlicer::Slice::CreateSceneLayer";
95 LOG(INFO) << "InvisibleSlice -- about to dump histogram (100 buckets) for volume_ "
96 << "with OrthancId: " << parameters.GetOrthancInstanceIdentifier()
97 << " and SopInstanceUid: " << parameters.GetSopInstanceUid()
98 << " for projection_ (AxiCorSag): projection_ "
99 << " and slice: " << sliceIndex_;
100
101 HistogramData hd;
102 double minValue = 0;
103 double maxValue = 0;
104 ComputeMinMax(reader.GetAccessor(), minValue, maxValue);
105 double binSize = (maxValue - minValue) * 0.01;
106 ComputeHistogram(reader.GetAccessor(), hd, binSize);
107 std::string s;
108 DumpHistogramResult(s, hd);
109 LOG(INFO) << s;
110 LOG(INFO) << "+----------------------------------------+";
111 LOG(INFO) << "| end of debug dump |";
112 LOG(INFO) << "+----------------------------------------+";
113 }
114 87
115 texture.reset(dynamic_cast<TextureBaseSceneLayer*> 88 texture.reset(dynamic_cast<TextureBaseSceneLayer*>
116 (configurator->CreateTextureFromDicom(reader.GetAccessor(), parameters))); 89 (configurator->CreateTextureFromDicom(reader.GetAccessor(), parameters)));
117 90
118 // <DEBUG-BLOCK> 91 // <DEBUG-BLOCK>