Commit 5504ac9d authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Fixing marching squares condition of acceptance above wash_threshold.

parent 1e871ef8
Pipeline #12791 passed with stages
in 9 minutes and 26 seconds
......@@ -74,6 +74,10 @@ std::vector<std::pair<int, int>> MarchingSquares<data_type>::march(
{
mBit[p_i] = 2;
}
else
{
mBit[p_i] = 0;
}
}
//
// connected component labeling is required for multiple groups
......@@ -158,7 +162,7 @@ bool MarchingSquares<data_type>::accepts(size_t r, size_t c) const
if (c < 0 || r < 0 || c >= mColumns || r >= mRows) return false;
// Check the data value
if (mData[mColumns * r + c] > 0) return true;
if (mBit[mColumns * r + c] == 1) return true;
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment