The function calcCoordsFromCurrentView returns the number of model points multiplied with 2.
In comparison calcCoordsFromCurrentViewMask returns the number of model points NOT multiplied with 2.
This might lead to an inconsistency in using both functions as equivalent behavior is expected.
Probably the error is located in Sensor.cpp in calcCoordsFromCurrentView in line 94. The counter for valid points is incremented for every point twice. In comparison calcCoordsFromCurrentViewMask is incremented for every point only once.