#include <Create_Test_Model_Dialog.h>
Public Member Functions | |
CreateTestModelDialog (wxWindow *parent, HalconCpp::HDescriptorModel *desc_model, HalconCpp::HImage image, int depth, int number_ferns, int patch_size, double min_scale, double max_scale, bool use_color) | |
The constructor of this class. More... | |
Public Member Functions inherited from Create_Test_Model_Dialog_Base | |
Create_Test_Model_Dialog_Base (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Please wait..."), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(200, 100), long style=wxDEFAULT_DIALOG_STYLE) | |
~Create_Test_Model_Dialog_Base () | |
Protected Member Functions | |
void | onButtonAbortClicked (wxCommandEvent &event) |
void | onCloseClicked (wxCloseEvent &event) |
Private Member Functions | |
void | createDescriptorModel (HalconCpp::HDescriptorModel *desc_model, HalconCpp::HImage image, HalconCpp::HTuple descParamNames, HalconCpp::HTuple descParamValues, bool use_color) |
Creates the test-model with the given parameters. More... | |
Private Attributes | |
bool | success |
Additional Inherited Members | |
Protected Attributes inherited from Create_Test_Model_Dialog_Base | |
wxButton * | button_abort |
wxStaticText * | label_message |
Copyright (C) 2016, Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. This class represents the dialog which is shown when a test-descriptor-model is created with the given parameters used for testing
Definition at line 30 of file Create_Test_Model_Dialog.h.
CreateTestModelDialog::CreateTestModelDialog | ( | wxWindow * | parent, |
HalconCpp::HDescriptorModel * | desc_model, | ||
HalconCpp::HImage | image, | ||
int | depth, | ||
int | number_ferns, | ||
int | patch_size, | ||
double | min_scale, | ||
double | max_scale, | ||
bool | use_color | ||
) |
The constructor of this class.
parent | The parent window of this dialog |
desc_model | A pointer to the descriptor-model which will be created by class |
image | The view of the object the model is created with |
depth | The depth of the the classification ferns used by the descriptor-based recognition |
number_ferns | The number of ferns used by the descriptor-based recognition |
patch_size | The patch size used by the descriptor-based recognition |
min_scale | The minimal scale of the view the model is created from |
max_scale | The maximal scale of the view the model is created from |
use_color | Indicates whether a colored image should be used for the creation of the model |
Definition at line 43 of file Create_Test_Model_Dialog.cpp.
|
private |
Creates the test-model with the given parameters.
desc_model | A pointer to the descriptor-model which will be created by this function |
image | The view of the object the model is created with |
descParamNames | The names of the descriptor-model-parameters |
descParamValues | The values of the parameters given in descParamNames |
use_color | Indicates whether a colored image should be used for the creation of the model |
Copyright (C) 2016, Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition at line 27 of file Create_Test_Model_Dialog.cpp.
|
protectedvirtual |
Called when the abort button is pushed
Reimplemented from Create_Test_Model_Dialog_Base.
Definition at line 68 of file Create_Test_Model_Dialog.cpp.
|
protectedvirtual |
Called when the dialog is being closed
Reimplemented from Create_Test_Model_Dialog_Base.
Definition at line 81 of file Create_Test_Model_Dialog.cpp.
|
private |
Indicates whether the creation of the test model was successful
Definition at line 36 of file Create_Test_Model_Dialog.h.