Increased version to 0.12.4, Tango: gain compensation on each channel, added min depth parameter, fixed exporting failing when doing export just after opening a database

This commit is contained in:
matlabbe
2017-04-01 14:14:36 -04:00
parent d68eeada0e
commit aa37ac6038
19 changed files with 271 additions and 113 deletions

View File

@@ -468,9 +468,23 @@ void GainCompensator::apply(
}
}
double GainCompensator::getGain(int id) const
double GainCompensator::getGain(int id, double * r, double * g, double * b) const
{
UASSERT_MSG(uContains(idToIndex_, id), uFormat("id=%d idToIndex_.size()=%d", id, (int)idToIndex_.size()).c_str());
if(r)
{
*r = gains_(idToIndex_.at(id), 1);
}
if(g)
{
*g = gains_(idToIndex_.at(id), 2);
}
if(b)
{
*b = gains_(idToIndex_.at(id), 3);
}
return gains_(idToIndex_.at(id), 0);
}