keypointvaluechooser.hpp 906 Bytes
Newer Older
1 2 3 4 5 6
#ifndef CVVISUAL_KEY_POINT_VALUE_CHOOSER
#define CVVISUAL_KEY_POINT_VALUE_CHOOSER

#include <QWidget>
#include <QComboBox>

Maksim Shabunin's avatar
Maksim Shabunin committed
7
#include "opencv2/features2d.hpp"
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47


namespace cvv{ namespace qtutil{

/**
 * @brief this widget contains a combobox with the attributes of an keypoint as entry.
 * you cann call the method getChoosenValue which return the choosen value of the given keypoint
 */
class KeyPointValueChooser:public QWidget{

	Q_OBJECT

public:
	/**
	 * @brief the constructor
	 * @param parent the parent Widget
	 */
	KeyPointValueChooser(QWidget *parent=nullptr);

	/**
	 * @brief returns the choosen value of the given keypoint
	 * @return the choosen value of the given keypoint
	 */
	double getChoosenValue(cv::KeyPoint keypoint);

signals:

	/**
	 * @brief this signal will be emitted if the user selected an other value
	 */
	void valueChanged();

private:
	QComboBox *combBox_;

};

}}

#endif