added implementation SetTo() with mask

This commit is contained in:
Andrey Morozov
2010-07-19 07:56:27 +00:00
parent da1526aa49
commit 20e2dc84b0
2 changed files with 41 additions and 4 deletions

View File

@@ -81,14 +81,13 @@ void GpuMat::convertTo( GpuMat& /*m*/, int /*rtype*/, double /*alpha*/, double /
GpuMat& GpuMat::operator = (const Scalar& s)
{
CV_Assert(!"Not implemented");
cv::gpu::impl::set_to_without_mask(*this, s.val, this->depth(), this->channels());
return *this;
}
GpuMat& GpuMat::setTo(const Scalar& s, const GpuMat& mask)
{
CV_Assert(!"Not implemented");
CV_Assert(mask.type() == CV_32F);
CV_DbgAssert(!this->empty());