Newer
Older
DeepTIAS / reference / Analysis / Detect.h
@ke96 ke96 on 15 Oct 2020 496 bytes 色抽出実装した
#pragma once

#include "stdafx.h"

class CDetect
{
protected:
	IplImage *m_Input;
	IplImage *m_Template;
	CvPoint  *m_PatchPos;
	double   m_RotateStep;
	int		 m_NumPatch;
	int		 m_PatchSize;

protected:
	bool SetTemplate(const char *filename);
	bool Matching(CvPoint *pos, double *angle);

public:
	CDetect(void);
	~CDetect(void);
	bool SetImage(const char *filename);
	virtual bool Init() = NULL;
	bool CalcPatchColor(CvMat **rgb);
	bool DrawROI(IplImage *img);
	IplImage* GenPatchedImage();
};