move ICF -> ChannelFeature

This commit is contained in:
marina.kolpakova
2013-01-30 09:34:22 +04:00
parent a01f596474
commit b4aa33b6d3
6 changed files with 194 additions and 129 deletions

View File

@@ -87,6 +87,31 @@ public:
virtual ~Dataset();
};
// ========================================================================== //
// First order channel feature.
// ========================================================================== //
class CV_EXPORTS ChannelFeature
{
public:
ChannelFeature(int x, int y, int w, int h, int ch);
~ChannelFeature();
bool operator ==(ChannelFeature b);
bool operator !=(ChannelFeature b);
float operator() (const cv::Mat& integrals, const cv::Size& model) const;
friend void write(cv::FileStorage& fs, const std::string&, const ChannelFeature& f);
friend std::ostream& operator<<(std::ostream& out, const ChannelFeature& f);
private:
cv::Rect bb;
int channel;
};
void write(cv::FileStorage& fs, const std::string&, const ChannelFeature& f);
std::ostream& operator<<(std::ostream& out, const ChannelFeature& m);
// ========================================================================== //
// Public Interface for Integral Channel Feature.