Revision Log
*** empty log message ***
#ifndef _PAT_MATCH_H
#define _PAT_MATCH_H
#include <string>
#include <iostream>
#include "BitmapFont.h"
#include "Assumption.h"
#include <vector>
/* @ : 黒 */
/* . : 白 */
/* else(?) : どちらでも */
class PatMatch{
friend std::ostream& operator<<(std::ostream &os,const PatMatch &pm);
protected:
int width, height;
std::string pat;
Assumption assumption;
public:
PatMatch(int w,int h,std::string s,const Assumption &as);
PatMatch(int w,int h,std::string s, const SimpleAssumption &sa);
int get(int x,int y) const;
#if 0
bool isMatch(const BitmapFont& bf, int x, int y) const;
#endif
int matchPenalty(const BitmapFont& bf, int x, int y) const;
std::vector<pixel> getPixels(int x, int y) const;
};
std::ostream& operator<<(std::ostream &os,const PatMatch &pm);
#endif /* _PAT_MATCH_H */
|
ktanaka Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |