mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
fix static analysis issues
This commit is contained in:
parent
61eb1a6848
commit
8c8715c4dd
@ -104,8 +104,9 @@ void cv::fisheye::projectPoints(InputArray objectPoints, OutputArray imagePoints
|
||||
|
||||
Vec4d k = _D.depth() == CV_32F ? (Vec4d)*_D.getMat().ptr<Vec4f>(): *_D.getMat().ptr<Vec4d>();
|
||||
|
||||
const bool isJacobianNeeded = jacobian.needed();
|
||||
JacobianRow *Jn = 0;
|
||||
if (jacobian.needed())
|
||||
if (isJacobianNeeded)
|
||||
{
|
||||
int nvars = 2 + 2 + 1 + 4 + 3 + 3; // f, c, alpha, k, om, T,
|
||||
jacobian.create(2*(int)n, nvars, CV_64F);
|
||||
@ -153,7 +154,7 @@ void cv::fisheye::projectPoints(InputArray objectPoints, OutputArray imagePoints
|
||||
else
|
||||
xpd[i] = final_point;
|
||||
|
||||
if (jacobian.needed())
|
||||
if (isJacobianNeeded)
|
||||
{
|
||||
//Vec3d Xi = pdepth == CV_32F ? (Vec3d)Xf[i] : Xd[i];
|
||||
//Vec3d Y = aff*Xi;
|
||||
|
@ -4435,6 +4435,7 @@ public:
|
||||
: size_(size), originPtr_(ptr), alignment_(alignment), ptr_(ptr), allocatedPtr_(NULL)
|
||||
{
|
||||
CV_DbgAssert((alignment & (alignment - 1)) == 0); // check for 2^n
|
||||
CV_DbgAssert(!readAccess || ptr);
|
||||
if (((size_t)ptr_ & (alignment - 1)) != 0)
|
||||
{
|
||||
allocatedPtr_ = new uchar[size_ + alignment - 1];
|
||||
@ -4488,6 +4489,7 @@ public:
|
||||
: size_(rows*step), originPtr_(ptr), alignment_(alignment), ptr_(ptr), allocatedPtr_(NULL), rows_(rows), cols_(cols), step_(step)
|
||||
{
|
||||
CV_DbgAssert((alignment & (alignment - 1)) == 0); // check for 2^n
|
||||
CV_DbgAssert(!readAccess || ptr != NULL);
|
||||
if (ptr == 0 || ((size_t)ptr_ & (alignment - 1)) != 0)
|
||||
{
|
||||
allocatedPtr_ = new uchar[size_ + extrabytes + alignment - 1];
|
||||
|
@ -360,6 +360,8 @@ public:
|
||||
{
|
||||
CV_TRACE_FUNCTION();
|
||||
|
||||
CV_DbgAssert(cn > 0);
|
||||
|
||||
Mat dx, dy;
|
||||
AutoBuffer<short> dxMax(0), dyMax(0);
|
||||
std::deque<uchar*> stack, borderPeaksLocal;
|
||||
|
Loading…
Reference in New Issue
Block a user