Added parameter autoUpdateObjects
git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@87 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
parent
a794ce5aef
commit
6611fb037d
@ -887,7 +887,11 @@ void MainWindow::update(const cv::Mat & image)
|
|||||||
void MainWindow::notifyParametersChanged()
|
void MainWindow::notifyParametersChanged()
|
||||||
{
|
{
|
||||||
printf("Parameters changed...\n");
|
printf("Parameters changed...\n");
|
||||||
if(objects_.size())
|
if(Settings::getGeneral_autoUpdateObjects())
|
||||||
|
{
|
||||||
|
this->updateObjects();
|
||||||
|
}
|
||||||
|
else if(objects_.size())
|
||||||
{
|
{
|
||||||
this->statusBar()->showMessage(tr("A parameter has changed... \"Update objects\" may be required."));
|
this->statusBar()->showMessage(tr("A parameter has changed... \"Update objects\" may be required."));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -126,6 +126,7 @@ class Settings
|
|||||||
PARAMETER(NearestNeighbor, minDistance, float, 1.6f);
|
PARAMETER(NearestNeighbor, minDistance, float, 1.6f);
|
||||||
|
|
||||||
PARAMETER(General, autoStartCamera, bool, false);
|
PARAMETER(General, autoStartCamera, bool, false);
|
||||||
|
PARAMETER(General, autoUpdateObjects, bool, false);
|
||||||
PARAMETER(General, nextObjID, uint, 1);
|
PARAMETER(General, nextObjID, uint, 1);
|
||||||
PARAMETER(General, imageFormats, QString, "*.png *.jpg *.bmp *.tiff")
|
PARAMETER(General, imageFormats, QString, "*.png *.jpg *.bmp *.tiff")
|
||||||
PARAMETER(General, videoFormats, QString, "*.avi *.m4v")
|
PARAMETER(General, videoFormats, QString, "*.avi *.m4v")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user