matchportionselector.hpp 691 Bytes
Newer Older
1 2 3 4 5
#ifndef CVVISUAL_MATCH_PORTION_SELECTOR
#define CVVISUAL_MATCH_PORTION_SELECTOR

#include <vector>

Maksim Shabunin's avatar
Maksim Shabunin committed
6
#include "opencv2/features2d.hpp"
7 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

#include "matchselection.hpp"
#include "../portionselector.hpp"

namespace cvv {namespace qtutil{
/**
 * @brief this class use the PortionSelector for Matches
 */
class MatchPortionSelection:public MatchSelection{
public:
	/**
	 * @brief the constructor
	 * @param parent the parent widget
	 */
	MatchPortionSelection(std::vector<cv::DMatch>, QWidget * parent=nullptr);

	/**
	 * @brief see MatchSelection
	 */
	virtual std::vector<cv::DMatch> select(const std::vector<cv::DMatch>& selection)override;

private:
	PortionSelector* selector_;
};

}}

#endif