const Calc::Output& Calc::operator()(const Input& frames) { cv::Mat old, current; cv::cvtColor(frames.old, old, CV_BGR2GRAY); cv::cvtColor(frames.current, current, CV_BGR2GRAY); frames.current.copyTo(_out.original); old = 255 + (old - _background); current = 255 + (current - _background); computeDensity(current); computeDensityMask(current); computeAlignment(current); computeVelocity(old, current); return _out; }
bool ResolutionCandidate::isApplicableConcrete(CallInfo& info) { bool retval = false; fn = expandIfVarArgs(fn, info); if (fn != NULL) { resolveTypedefedArgTypes(); if (computeAlignment(info) == true) { // Ensure that type constructor is resolved before other constructors. if (fn->hasFlag(FLAG_DEFAULT_CONSTRUCTOR) == true) { resolveTypeConstructor(info); } retval = checkResolveFormalsWhereClauses(info); } } return retval; }