template<class ArrayT>
Definition at line 146 of file TestImage.h. References mErrorTolerance, Impala::Core::Array::Trait::BpoTestEqual< DstArrayT, Src1ArrayT, Src2ArrayT >::mNr, Impala::Core::Array::Trait::BpoTestEqual< DstArrayT, Src1ArrayT, Src2ArrayT >::mNrDiff, Impala::Core::Array::Trait::BpoTestEqual< DstArrayT, Src1ArrayT, Src2ArrayT >::mSumDiff, Impala::Core::Array::Trait::BpoTestEqual< DstArrayT, Src1ArrayT, Src2ArrayT >::mSumSrc1, Impala::Core::Array::Trait::BpoTestEqual< DstArrayT, Src1ArrayT, Src2ArrayT >::mSumSrc2, Impala::Core::Array::Pattern::PatBinaryPixOp(), and Impala::Core::Test::TestBase::SetFailure(). Referenced by Compare(), and CompareList(). 00147 { 00148 std::ostringstream ost; 00149 if (src->CW() != ref->CW()) 00150 ost << "width differs: " << src->CW() << " vs " 00151 << ref->CW() << std::ends; 00152 if (src->CH() != ref->CH()) 00153 ost << "height differs: " << src->CH() << " vs " 00154 << ref->CH() << std::ends; 00155 Array::Trait::BpoTestEqual<Array2dScalarReal64, ArrayT, ArrayT> bpo(mErrorTolerance); 00156 Array2dScalarReal64* dst = 0; 00157 Array::Pattern::PatBinaryPixOp(dst, src, ref, bpo); 00158 if (bpo.mNrDiff > 0) 00159 ost << "TestEqual found " << bpo.mNrDiff << " differences, in " 00160 << bpo.mNr << " pixels, sum diffs : " << bpo.mSumDiff 00161 << " avg diff : " << bpo.mSumDiff / bpo.mNrDiff 00162 << " avg src1 : " << bpo.mSumSrc1 / bpo.mNr 00163 << " avg src2 : " << bpo.mSumSrc2 / bpo.mNr << std::ends; 00164 String r = ost.str(); 00165 if (r.size() > 0) 00166 SetFailure(r); 00167 delete dst; 00168 }
Here is the call graph for this function:
|