⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.h

📁 本程序是计算机视觉稠密匹配的程序
💻 H
字号:
/*
 *
 *  All Contents Copyright 2000 by Jared Samet. All Rights Reserved.
 *
 */

#ifndef _IMAGE_H
#define _IMAGE_H

#define new DEBUG_NEW

class CSequence;
class CImage
{
public:    
	static int m_iGapPenalty;
    static int m_iMatchThree;
    static int m_iMatchTwo;
    static int m_iMatchOne;
    static int m_iMatchZero;
	CImage();				    	                                // does nothing
	virtual bool LoadFile(const char *pszFile)=0;                   // create the image from a file. specific to each type
	CSequence* getRow(unsigned int iRow);                           // turn a row into a [new] sequence
    unsigned int cRows(void);                                       // find out how many rows in the picture
    unsigned int cCols(void);
    virtual ~CImage();
    static int GapPenalty(unsigned int left);                       // gap penalty fn for an image
    static int MatchScore(unsigned int left, unsigned int right);   // match the left and right int's
protected:
    struct C3D_RGB
    {
        unsigned char Blue;
        unsigned char Green;
        unsigned char Red;
    };
    static void RGBtoHSL(C3D_RGB rgb, double *H, double *S, double *L);
    unsigned int m_iHeight, m_iWidth;                               // height and width
    static C3D_RGB IntToRGB(unsigned int i);                        // given an int, get its RGB
    static unsigned int RGBToInt(C3D_RGB rgb);                      // given an RGB, make it an int
    C3D_RGB* m_pRGBArray;    
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -