Boring changes - stitching.

This commit is contained in:
Roman Donchenko
2013-08-13 17:54:12 +04:00
parent cce0f48d3e
commit f21851f0f4
7 changed files with 61 additions and 61 deletions

View File

@@ -48,13 +48,13 @@ namespace detail {
Ptr<ExposureCompensator> ExposureCompensator::createDefault(int type)
{
if (type == NO)
return new NoExposureCompensator();
return makePtr<NoExposureCompensator>();
if (type == GAIN)
return new GainCompensator();
return makePtr<GainCompensator>();
if (type == GAIN_BLOCKS)
return new BlocksGainCompensator();
return makePtr<BlocksGainCompensator>();
CV_Error(Error::StsBadArg, "unsupported exposure compensation method");
return NULL;
return Ptr<ExposureCompensator>();
}