#include <View_Creator_Dialog.h>

Public Member Functions | |
| ViewCreatorDialog (wxWindow *parent, ViewParamsWrapper *params) | |
| The constructor of this class. More... | |
Public Member Functions inherited from ViewCreatorDialogBase | |
| ViewCreatorDialogBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Descriptor Surfaced Based Trainer - Create View"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(1000, 880), long style=wxDEFAULT_DIALOG_STYLE) | |
| ~ViewCreatorDialogBase () | |
Protected Member Functions | |
| void | onButtonCancelClicked (wxCommandEvent &event) |
| void | onButtonEndTestClicked (wxCommandEvent &event) |
| void | onButtonSaveClicked (wxCommandEvent &event) |
| void | onButtonStartTestClicked (wxCommandEvent &event) |
| void | onCheckUpsideDown (wxCommandEvent &event) |
| void | onCheckUseColor (wxCommandEvent &event) |
| void | onCheckUseCurrentImage (wxCommandEvent &event) |
| void | onChoiceImage (wxCommandEvent &event) |
| void | onChoiceImageSource (wxCommandEvent &event) |
| void | onChoiceTestImage (wxCommandEvent &event) |
| void | onChoiceTestImageSource (wxCommandEvent &event) |
| void | OnDialogClose (wxCloseEvent &event) |
| void | onEditTextAxis1Angle (wxFocusEvent &event) |
| void | onEditTextAxis1AngleEnter (wxCommandEvent &event) |
| void | onEditTextAxis1X (wxFocusEvent &event) |
| void | onEditTextAxis1XEnter (wxCommandEvent &event) |
| void | onEditTextAxis1Y (wxFocusEvent &event) |
| void | onEditTextAxis1YEnter (wxCommandEvent &event) |
| void | onEditTextAxis1Z (wxFocusEvent &event) |
| void | onEditTextAxis1ZEnter (wxCommandEvent &event) |
| void | onEditTextAxis2Angle (wxFocusEvent &event) |
| void | onEditTextAxis2AngleEnter (wxCommandEvent &event) |
| void | onEditTextAxis2X (wxFocusEvent &event) |
| void | onEditTextAxis2XEnter (wxCommandEvent &event) |
| void | onEditTextAxis2Y (wxFocusEvent &event) |
| void | onEditTextAxis2YEnter (wxCommandEvent &event) |
| void | onEditTextAxis2Z (wxFocusEvent &event) |
| void | onEditTextAxis2ZEnter (wxCommandEvent &event) |
| void | onEditTextDepth (wxFocusEvent &event) |
| void | onEditTextDepthEnter (wxCommandEvent &event) |
| void | onEditTextFernNumber (wxFocusEvent &event) |
| void | onEditTextFernNumberEnter (wxCommandEvent &event) |
| void | onEditTextHorizontalOffset (wxFocusEvent &event) |
| void | onEditTextHorizontalOffsetEnter (wxCommandEvent &event) |
| void | onEditTextLowerRightColumn (wxFocusEvent &event) |
| void | onEditTextLowerRightColumnEnter (wxCommandEvent &event) |
| void | onEditTextLowerRightRow (wxFocusEvent &event) |
| void | onEditTextLowerRightRowEnter (wxCommandEvent &event) |
| void | onEditTextMaxScale (wxFocusEvent &event) |
| void | onEditTextMaxScaleEnter (wxCommandEvent &event) |
| void | onEditTextMinScale (wxFocusEvent &event) |
| void | onEditTextMinScaleEnter (wxCommandEvent &event) |
| void | onEditTextOrientationX (wxFocusEvent &event) |
| void | onEditTextOrientationXEnter (wxCommandEvent &event) |
| void | onEditTextOrientationY (wxFocusEvent &event) |
| void | onEditTextOrientationYEnter (wxCommandEvent &event) |
| void | onEditTextOrientationZ (wxFocusEvent &event) |
| void | onEditTextOrientationZEnter (wxCommandEvent &event) |
| void | onEditTextPatchSize (wxFocusEvent &event) |
| void | onEditTextPatchSizeEnter (wxCommandEvent &event) |
| void | onEditTextScore (wxFocusEvent &event) |
| void | onEditTextScoreEnter (wxCommandEvent &event) |
| void | onEditTextUpperLeftColumn (wxFocusEvent &event) |
| void | onEditTextUpperLeftColumnEnter (wxCommandEvent &event) |
| void | onEditTextUpperLeftRow (wxFocusEvent &event) |
| void | onEditTextUpperLeftRowEnter (wxCommandEvent &event) |
| void | onEditTextVerticalOffset (wxFocusEvent &event) |
| void | onEditTextVerticalOffsetEnter (wxCommandEvent &event) |
| void | onSlideLowerRightColumn (wxScrollEvent &event) |
| void | onSlideLowerRightRow (wxScrollEvent &event) |
| void | onSlideUpperLeftColumn (wxScrollEvent &event) |
| void | onSlideUpperLeftRow (wxScrollEvent &event) |
Private Member Functions | |
| void | enableGuiElements (bool enable=true) |
| Enables/Disables the Gui-elements used for setting the parameters. More... | |
| void | enableGuiElementsTest (bool enable=true) |
| Enables/Disables all Gui-elements which are not used during testing. More... | |
| void | onModelCameraImage (const sensor_msgs::Image::ConstPtr &msg) |
| The callback function for the image-topic-subscriber. More... | |
| void | onTestCameraImage (const sensor_msgs::Image::ConstPtr &msg, bool use_file) |
| The callback function for the test-image-topic-subscriber. More... | |
| void | onUpdate (wxTimerEvent &evt) |
| The callback function for the update-timer. More... | |
| void | paint_test_image (HalconCpp::HImage img) |
| Shows the given image on the right image panel. More... | |
| void | updateImageOnCrop () |
| Updates the shown image (left panel) after it was cropped with the sliders. More... | |
Private Attributes | |
| HalconCpp::HDescriptorModel | desc_model |
| bool | desc_model_available |
| double | feature_sum |
| bool | fixed_image_available |
| HalconCpp::HImage | fixedImage |
| int | frame_counter |
| ros::Subscriber | image_model_sub |
| ros::Subscriber | image_test_sub |
| ros::NodeHandle | nh |
| boost::thread | paint_thread |
| ViewParamsWrapper * | params |
| double | score_sum |
| bool | test_running |
| double | time_sum |
| int | update_counter |
| wxTimer * | update_timer |
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 used to create a new view used for 2D-recognition
Definition at line 35 of file View_Creator_Dialog.h.
| ViewCreatorDialog::ViewCreatorDialog | ( | wxWindow * | parent, |
| ViewParamsWrapper * | params | ||
| ) |
The constructor of this class.
| parent | The parent window of this dialog |
| params | The parameters used if this dialog was created after pushing the edit-button on DescModelDialog |
Definition at line 111 of file View_Creator_Dialog.cpp.
|
private |
Enables/Disables the Gui-elements used for setting the parameters.
| enable | Indicates whether the elements should be enabled or disabled |
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 32 of file View_Creator_Dialog.cpp.
|
private |
Enables/Disables all Gui-elements which are not used during testing.
| enable | Indicates whether the elements should be enabled or disabled |
Definition at line 65 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 718 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 710 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 733 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 629 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1368 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1373 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 960 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 440 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 378 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 605 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 561 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
wxwidgets Gui-callback-functions
Reimplemented from ViewCreatorDialogBase.
Definition at line 364 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1403 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1539 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1379 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1521 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1387 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1527 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1395 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1533 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1440 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1563 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1416 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1545 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1424 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1551 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1432 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1557 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1253 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1491 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1276 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1497 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1245 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1485 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1067 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1200 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1036 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1195 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1345 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1515 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1322 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1509 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1205 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1455 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1213 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1461 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1221 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1467 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1299 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1503 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1229 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1473 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1004 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1190 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 973 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1185 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1237 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1479 of file View_Creator_Dialog.cpp.
|
private |
The callback function for the image-topic-subscriber.
| msg | The input ros-image-message |
Definition at line 206 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1163 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1141 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1119 of file View_Creator_Dialog.cpp.
|
protectedvirtual |
Reimplemented from ViewCreatorDialogBase.
Definition at line 1097 of file View_Creator_Dialog.cpp.
|
private |
The callback function for the test-image-topic-subscriber.
| msg | The input ros-image-message |
| use_file | Indicates whether the test image is read from a file |
Definition at line 240 of file View_Creator_Dialog.cpp.
|
private |
The callback function for the update-timer.
Definition at line 342 of file View_Creator_Dialog.cpp.
|
private |
Shows the given image on the right image panel.
| img | The given image |
Definition at line 101 of file View_Creator_Dialog.cpp.
|
private |
Updates the shown image (left panel) after it was cropped with the sliders.
Definition at line 82 of file View_Creator_Dialog.cpp.
|
private |
The descriptor-model used for testing
Definition at line 80 of file View_Creator_Dialog.h.
|
private |
Indicates whether a descriptor-model used for testing is already created
Definition at line 59 of file View_Creator_Dialog.h.
|
private |
The sum of the feature-amounts of each frame of the current test
Definition at line 71 of file View_Creator_Dialog.h.
|
private |
Indicates whether an input camera image is fixed and can be used for the creation of the view
Definition at line 56 of file View_Creator_Dialog.h.
|
private |
The fixed image
Definition at line 50 of file View_Creator_Dialog.h.
|
private |
The number of frames of the current test
Definition at line 65 of file View_Creator_Dialog.h.
|
private |
Ros subscriber which manages the subscription callback on the image-topic
Definition at line 44 of file View_Creator_Dialog.h.
|
private |
Ros subscriber which manages the subscription callback on the test-image-topic
Definition at line 47 of file View_Creator_Dialog.h.
|
private |
Ros' interface for creating subscribers, publishers, etc.
Definition at line 41 of file View_Creator_Dialog.h.
|
private |
The thread used for painting the found features onto the input image during testing
Definition at line 87 of file View_Creator_Dialog.h.
|
private |
A pointer to the parameters used for this view
Definition at line 53 of file View_Creator_Dialog.h.
|
private |
The sum of the scores of each frame of the current test
Definition at line 68 of file View_Creator_Dialog.h.
|
private |
Indicates whether a test is running
Definition at line 62 of file View_Creator_Dialog.h.
|
private |
The sum of the recognition-times of each frame of the current test
Definition at line 74 of file View_Creator_Dialog.h.
|
private |
The number of updates (see update_timer)
Definition at line 90 of file View_Creator_Dialog.h.
|
private |
Timer used to update the shown camera images
Definition at line 77 of file View_Creator_Dialog.h.