Newer
Older
}
l.dressen
committed
else
{
l.dressen
committed
mPixelVariance = pow(mPixelStdDev, 2);
}
l.dressen
committed
mPixelMax = readDouble(subElem, "MAX_PX", 0);
mUsedDefaultHeight = readDouble(subElem, "USED_HEIGHT", 0);
auto data = getData();
mValid = !std::any_of(data.begin(), data.end(), [](double a) { return !std::isfinite(a) || a < 0; });
}
void ReprojectionError::setXml(QDomElement &elem) const
{
QDomElement subElem = elem.ownerDocument().createElement("REPROJECTION_ERROR");
subElem.setAttribute("AVG_PH", mPointHeightAvg);
subElem.setAttribute("SD_PH", mPointHeightStdDev);
subElem.setAttribute("MAX_PH", mPointHeightMax);
subElem.setAttribute("AVG_DH", mDefaultHeightAvg);
subElem.setAttribute("SD_DH", mDefaultHeightStdDev);
subElem.setAttribute("MAX_DH", mDefaultHeightMax);
subElem.setAttribute("AVG_PX", mPixelAvg);
subElem.setAttribute("SD_PX", mPixelStdDev);
subElem.setAttribute("MAX_PX", mPixelMax);
subElem.setAttribute("USED_HEIGHT", mUsedDefaultHeight);
elem.appendChild(subElem);
}
double ReprojectionError::pointHeightAvg() const
{
return mPointHeightAvg;
}
double ReprojectionError::pointHeightStdDev() const
{
return mPointHeightStdDev;
}
double ReprojectionError::pointHeightVariance() const
{
return mPointHeightVariance;
}
double ReprojectionError::pointHeightMax() const
{
return mPointHeightMax;
}
double ReprojectionError::defaultHeightAvg() const
{
return mDefaultHeightAvg;
}
double ReprojectionError::defaultHeightStdDev() const
{
return mDefaultHeightStdDev;
}
double ReprojectionError::defaultHeightVariance() const
{
return mDefaultHeightVariance;
}
double ReprojectionError::defaultHeightMax() const
{
return mDefaultHeightMax;
}
double ReprojectionError::pixelAvg() const
{
return mPixelAvg;
}
double ReprojectionError::pixelStdDev() const
{
return mPixelStdDev;
}
double ReprojectionError::pixelVariance() const
{
return mPixelVariance;
}
double ReprojectionError::pixelMax() const
{
return mPixelMax;
}
double ReprojectionError::usedDefaultHeight() const
{
return mUsedDefaultHeight;
}