comparison Framework/Scene2D/FloatTextureSceneLayer.cpp @ 1289:343aa1dfaa90 bugs/2020-02-invisible-slice

Ongoing work on invisible slice bug (logging + removed unused function)
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 19 Feb 2020 17:05:08 +0100
parents 8e82fdc6200e
children 7def6ab2929f
comparison
equal deleted inserted replaced
1288:d8c42e5e5843 1289:343aa1dfaa90
41 41
42 Orthanc::ImageProcessing::Convert(*t, texture); 42 Orthanc::ImageProcessing::Convert(*t, texture);
43 43
44 if (OrthancStone_Internals_dump_LoadTexture_histogram == 1) 44 if (OrthancStone_Internals_dump_LoadTexture_histogram == 1)
45 { 45 {
46 LOG(ERROR) << "+----------------------------------------+"; 46 LOG(INFO) << "+----------------------------------------+";
47 LOG(ERROR) << "| This is not an error! |"; 47 LOG(INFO) << "| This is not an error! |";
48 LOG(ERROR) << "+----------------------------------------+"; 48 LOG(INFO) << "+----------------------------------------+";
49 LOG(ERROR) << "Work on the \"invisible slice\" bug"; 49 LOG(INFO) << "Work on the \"invisible slice\" bug";
50 LOG(ERROR) << "in FloatTextureSceneLayer::FloatTextureSceneLayer"; 50 LOG(INFO) << "in FloatTextureSceneLayer::FloatTextureSceneLayer";
51 LOG(ERROR) << "will dump \"t\" after \"Orthanc::ImageProcessing::Convert(*t, texture);\""; 51 LOG(INFO) << "will dump \"t\" after \"Orthanc::ImageProcessing::Convert(*t, texture);\"";
52 52
53 HistogramData hd; 53 HistogramData hd;
54 double minValue = 0; 54 double minValue = 0;
55 double maxValue = 0; 55 double maxValue = 0;
56 ComputeMinMax(*t, minValue, maxValue); 56 ComputeMinMax(*t, minValue, maxValue);
57 double binSize = (maxValue - minValue) * 0.01; 57 double binSize = (maxValue - minValue) * 0.01;
58 ComputeHistogram(*t, hd, binSize); 58 ComputeHistogram(*t, hd, binSize);
59 std::string s; 59 std::string s;
60 DumpHistogramResult(s, hd); 60 DumpHistogramResult(s, hd);
61 LOG(ERROR) << s; 61 LOG(INFO) << s;
62 LOG(ERROR) << "+----------------------------------------+"; 62 LOG(INFO) << "+----------------------------------------+";
63 LOG(ERROR) << "| end of debug dump |"; 63 LOG(INFO) << "| end of debug dump |";
64 LOG(ERROR) << "+----------------------------------------+"; 64 LOG(INFO) << "+----------------------------------------+";
65 } 65 }
66 66
67 SetTexture(t.release()); 67 SetTexture(t.release());
68 } 68 }
69 69