Lines Matching refs:curFrame
154 void calcDiffHistogram(const GpuMat& prevFrame, const GpuMat& curFrame, GpuMat& hist, GpuMat& histBuf)
156 typedef void (*func_t)(PtrStepSzb prevFrame, PtrStepSzb curFrame,
171 funcs[prevFrame.channels() - 1][curFrame.channels() - 1](
172 prevFrame, curFrame,
219 void calcDiffThreshMask(const GpuMat& prevFrame, const GpuMat& curFrame, Vec3d bestThres, GpuMat& changeMask)
221 typedef void (*func_t)(PtrStepSzb prevFrame, PtrStepSzb curFrame, uchar3 bestThres, PtrStepSzb changeMask, cudaStream_t stream);
232 funcs[prevFrame.channels() - 1][curFrame.channels() - 1](prevFrame, curFrame,
238 void changeDetection(const GpuMat& prevFrame, const GpuMat& curFrame, GpuMat& changeMask, GpuMat& hist, GpuMat& histBuf)
240 calcDiffHistogram(prevFrame, curFrame, hist, histBuf);
258 calcDiffThreshMask(prevFrame, curFrame, bestThres, changeMask);
267 int bgfgClassification(const GpuMat& prevFrame, const GpuMat& curFrame,
272 typedef void (*func_t)(PtrStepSzb prevFrame, PtrStepSzb curFrame, PtrStepSzb Ftd, PtrStepSzb Fbd, PtrStepSzb foreground,
297 funcs[prevFrame.channels() - 1][curFrame.channels() - 1][out_cn - 1](prevFrame, curFrame, Ftd, Fbd, foreground,
426 void updateBackgroundModel(const GpuMat& prevFrame, const GpuMat& curFrame, const GpuMat& Ftd, const GpuMat& Fbd,
430 typedef void (*func_t)(PtrStepSzb prevFrame, PtrStepSzb curFrame, PtrStepSzb Ftd, PtrStepSzb Fbd,
456 funcs[prevFrame.channels() - 1][curFrame.channels() - 1][background.channels() - 1](
457 prevFrame, curFrame, Ftd, Fbd, foreground, background,
632 GpuMat curFrame = _frame.getGpuMat();
634 if (curFrame.size() != frameSize_)
636 initialize(curFrame);
640 CV_Assert( curFrame.type() == CV_8UC3 || curFrame.type() == CV_8UC4 );
641 CV_Assert( curFrame.size() == prevFrame_.size() );
647 changeDetection(prevFrame_, curFrame, Ftd_, hist_, histBuf_);
648 changeDetection(background_, curFrame, Fbd_, hist_, histBuf_);
650 int FG_pixels_count = bgfgClassification(prevFrame_, curFrame, Ftd_, Fbd_, foreground_, params_, 4);
665 updateBackgroundModel(prevFrame_, curFrame, Ftd_, Fbd_, foreground_, background_, params_);
667 copyChannels(curFrame, prevFrame_, 4);