本文整理汇总了C++中TimeFrequencyData::SetImagesToZero方法的典型用法代码示例。如果您正苦于以下问题:C++ TimeFrequencyData::SetImagesToZero方法的具体用法?C++ TimeFrequencyData::SetImagesToZero怎么用?C++ TimeFrequencyData::SetImagesToZero使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TimeFrequencyData
的用法示例。
在下文中一共展示了TimeFrequencyData::SetImagesToZero方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: newArtifacts
void ForEachBaselineAction::PerformFunction::operator()()
{
boost::mutex::scoped_lock ioLock(_action._artifacts->IOMutex());
ImageSet *privateImageSet = _action._artifacts->ImageSet()->Copy();
ioLock.unlock();
try {
boost::mutex::scoped_lock lock(_action._mutex);
ArtifactSet newArtifacts(*_action._artifacts);
lock.unlock();
BaselineData *baseline = _action.GetNextBaseline();
while(baseline != 0) {
baseline->Index().Reattach(*privateImageSet);
std::ostringstream progressStr;
if(_action._hasInitAntennae)
progressStr << "Processing baseline " << baseline->MetaData()->Antenna1().name << " x " << baseline->MetaData()->Antenna2().name;
else
progressStr << "Processing next baseline";
_action.SetProgress(_progress, _action.BaselineProgress(), _action._baselineCount, progressStr.str(), _threadIndex);
newArtifacts.SetOriginalData(baseline->Data());
newArtifacts.SetContaminatedData(baseline->Data());
TimeFrequencyData *zero = new TimeFrequencyData(baseline->Data());
zero->SetImagesToZero();
newArtifacts.SetRevisedData(*zero);
delete zero;
newArtifacts.SetImageSetIndex(&baseline->Index());
newArtifacts.SetMetaData(baseline->MetaData());
_action.ActionBlock::Perform(newArtifacts, *this);
delete baseline;
baseline = _action.GetNextBaseline();
_action.IncBaselineProgress();
}
if(_threadIndex == 0)
_action._resultSet = new ArtifactSet(newArtifacts);
} catch(std::exception &e)
{
_progress.OnException(_action, e);
_action.SetExceptionOccured();
}
delete privateImageSet;
}