6 #define _R "\033[1;31m"
7 #define _B "\033[1;34m"
8 #define _G "\033[1;32m"
9 #define _N "\033[22;30m"
28 const int approxOffset = static_cast<int>(
offset);
34 bool result = (negativity < -1000.) ||
49 const int approxOffset = static_cast<int>(
offset);
68 bool result = (negativity > -1000.) &&
81 std::cerr <<
" [LASProfileJudge::EnableZeroFilter] ** WARNING: Zero filter has been disabled." << std::endl;
101 const unsigned int meanPosition = 256 +
offset;
103 const unsigned int halfWindowSize = 33;
105 const unsigned int sumHalfRange = 128;
110 for (
unsigned int i = meanPosition - sumHalfRange;
i < meanPosition - halfWindowSize; ++
i) {
114 for (
unsigned int i = meanPosition + halfWindowSize;
i < meanPosition + sumHalfRange; ++
i) {
127 const unsigned int meanPosition = 256 +
offset;
129 const unsigned int halfWindowSize = 33;
131 bool returnValue =
false;
134 double average = 0., counterD = 0.;
136 if (strip < meanPosition - halfWindowSize || strip > meanPosition + halfWindowSize) {
145 for (
unsigned int strip = meanPosition - halfWindowSize;
strip < meanPosition + halfWindowSize; ++
strip) {
154 return (returnValue);
163 const unsigned int meanPosition = 256 +
offset;
165 const unsigned int halfWindowSize = 33;
167 bool returnValue =
false;
170 double average = 0., counterD = 0.;
172 if (strip < meanPosition - halfWindowSize || strip > meanPosition + halfWindowSize) {
190 return (returnValue);
199 const unsigned int meanPosition = 256 +
offset;
201 const unsigned int halfWindowSize = 33;
204 for (
unsigned int strip = meanPosition - halfWindowSize;
strip < meanPosition + halfWindowSize; ++
strip) {