mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Misc. modules/ cont. pt2
Found via `codespell`
This commit is contained in:
@@ -60,7 +60,7 @@ class ROISelector
|
||||
Scalar(255, 0, 0), 2, 1);
|
||||
}
|
||||
|
||||
// show the image bouding box
|
||||
// show the image bounding box
|
||||
imshow(windowName, selectorParams.image);
|
||||
|
||||
// reset the image
|
||||
@@ -177,7 +177,7 @@ class ROISelector
|
||||
}
|
||||
}
|
||||
|
||||
// save the keypressed characted
|
||||
// save the keypressed character
|
||||
int key;
|
||||
Size imageSize;
|
||||
};
|
||||
|
||||
@@ -1596,7 +1596,7 @@ void CvWinProperties::showEvent(QShowEvent* evnt)
|
||||
{
|
||||
//why -1,-1 ?: do this trick because the first time the code is run,
|
||||
//no value pos was saved so we let Qt move the window in the middle of its parent (event ignored).
|
||||
//then hide will save the last position and thus, we want to retreive it (event accepted).
|
||||
//then hide will save the last position and thus, we want to retrieve it (event accepted).
|
||||
QPoint mypos(-1, -1);
|
||||
QSettings settings("OpenCV2", objectName());
|
||||
mypos = settings.value("pos", mypos).toPoint();
|
||||
|
||||
@@ -258,7 +258,7 @@ private:
|
||||
void* userdata;
|
||||
};
|
||||
|
||||
//Both are top level window, so that a way to differenciate them.
|
||||
//Both are top level window, so that a way to differentiate them.
|
||||
//if (obj->metaObject ()->className () == "CvWindow") does not give me robust result
|
||||
|
||||
enum typeWindow { type_CvWindow = 1, type_CvWinProperties = 2 };
|
||||
|
||||
@@ -910,7 +910,7 @@ CV_IMPL int cvNamedWindow( const char* name, int flags )
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "Failed to tranform process type: %d\n", (int) ret);
|
||||
fprintf(stderr, "Failed to transform process type: %d\n", (int) ret);
|
||||
fflush (stderr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user