mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Fixed uninitialized value and naming
This commit is contained in:
@@ -62,11 +62,10 @@ Ptr<ExposureCompensator> ExposureCompensator::createDefault(int type)
|
||||
e = makePtr<ChannelsCompensator>();
|
||||
else if (type == CHANNELS_BLOCKS)
|
||||
e = makePtr<BlocksChannelsCompensator>();
|
||||
|
||||
if (e.get() != nullptr)
|
||||
{
|
||||
e->setUpdateGain(true);
|
||||
return e;
|
||||
}
|
||||
|
||||
CV_Error(Error::StsBadArg, "unsupported exposure compensation method");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user