Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/FloatTextureSceneLayer.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 | 6ab03e429f06 8a0a62189f46 |
comparison
equal
deleted
inserted
replaced
1289:343aa1dfaa90 | 1290:7def6ab2929f |
---|---|
38 texture.GetWidth(), | 38 texture.GetWidth(), |
39 texture.GetHeight(), | 39 texture.GetHeight(), |
40 false)); | 40 false)); |
41 | 41 |
42 Orthanc::ImageProcessing::Convert(*t, texture); | 42 Orthanc::ImageProcessing::Convert(*t, texture); |
43 | |
44 if (OrthancStone_Internals_dump_LoadTexture_histogram == 1) | |
45 { | |
46 LOG(INFO) << "+----------------------------------------+"; | |
47 LOG(INFO) << "| This is not an error! |"; | |
48 LOG(INFO) << "+----------------------------------------+"; | |
49 LOG(INFO) << "Work on the \"invisible slice\" bug"; | |
50 LOG(INFO) << "in FloatTextureSceneLayer::FloatTextureSceneLayer"; | |
51 LOG(INFO) << "will dump \"t\" after \"Orthanc::ImageProcessing::Convert(*t, texture);\""; | |
52 | |
53 HistogramData hd; | |
54 double minValue = 0; | |
55 double maxValue = 0; | |
56 ComputeMinMax(*t, minValue, maxValue); | |
57 double binSize = (maxValue - minValue) * 0.01; | |
58 ComputeHistogram(*t, hd, binSize); | |
59 std::string s; | |
60 DumpHistogramResult(s, hd); | |
61 LOG(INFO) << s; | |
62 LOG(INFO) << "+----------------------------------------+"; | |
63 LOG(INFO) << "| end of debug dump |"; | |
64 LOG(INFO) << "+----------------------------------------+"; | |
65 } | |
66 | 43 |
67 SetTexture(t.release()); | 44 SetTexture(t.release()); |
68 } | 45 } |
69 | 46 |
70 SetCustomWindowing(128, 256); | 47 SetCustomWindowing(128, 256); |