• 大小: 6.48MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-25
  • 语言: C/C++
  • 标签: SIFT  MFC  图像拼接  

资源简介

使用了Rob Hess的sift 库。编译环境:vc6.0 需安装opencv1.0,gsl1.8,及opengl库

资源截图

代码片段和文件信息

// AviButton.cpp : implementation file
//

#include “stdafx.h“
#include “ImageMosaic.h“
#include “AviButton.h“
#include “ImageMosaicView.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAviButton

CAviButton::CAviButton()
{
m_bPlaying = FALSE;
is_active = TRUE;
}

CAviButton::~CAviButton()
{
}


BEGIN_MESSAGE_MAP(CAviButton CButton)
//{{AFX_MSG_MAP(CAviButton)
ON_WM_MOUSEMOVE()
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()



//绘制按钮边界
void CAviButton::DrawButton(CDC* pDC UINT nState CRect rect)
{
    COLORREF upColdownColedgeCol;
    edgeCol=RGB(000);
    BOOL bRevers = FALSE;
if ((nState & ODS_SELECTED) == ODS_SELECTED)//按钮被按下
{
//  Pressed 
        upCol=RGB(000);
        edgeCol=RGB(128128128);
        downCol=RGB(000);
        bRevers = TRUE;
    }
else
    {   // 正常状态
        upCol = RGB(255255255);
        downCol = RGB(128128128);
}
    CPen* pOldPen = NULL;
    BOOL pen1Created;
    CPen pen1;
    BOOL pen2Created;
    CPen pen2;
    if (pen1Created = pen1.CreatePen(PS_SOLID 1 upCol))  
        pOldPen = pDC->Selectobject( &pen1 );
    pDC->MoveTo(1rect.Height()-1);
    pDC->LineTo(11);                                                             
    pDC->LineTo(rect.Width()-11);
    pDC->MoveTo(0rect.Height()-1);
    pDC->LineTo(00);                                                             
    pDC->LineTo(rect.Width()-10);
    if (pen2Created = pen2.CreatePen(PS_SOLID 1 downCol))  
    {
        pDC->Selectobject( &pen2 );
    } 
    if (pen1Created) pen1.Deleteobject();
pen1Created = FALSE;
    pDC->MoveTo(rect.Width()-10);
    pDC->LineTo(rect.Width()-1rect.Height()-1);
    pDC->LineTo(0rect.Height()-1);
    pDC->MoveTo(rect.Width()-21);
    pDC->LineTo(rect.Width()-2rect.Height()-2);
    pDC->LineTo(0rect.Height()-2);
    if (pen2Created) pen2.Deleteobject();
pen2Created = FALSE;
if (pen1Created = pen1.CreatePen(PS_SOLID 1 edgeCol)) 
        pOldPen = pDC->Selectobject( &pen1 );


    if (bRevers)
    {
        pDC->MoveTo(1rect.Height()-2);
        pDC->LineTo(11);                                                             
        pDC->LineTo(rect.Width()-21);
    }
    else
    {
        pDC->MoveTo(rect.Width()-10);
        pDC->LineTo(rect.Width()-1rect.Height()-1);
        pDC->LineTo(-1rect.Height()-1);
    }

    if (pen1Created) pen1.Deleteobject();
pen1Created = FALSE;

    if (pOldPen != NULL) pDC->Selectobject( pOldPen );

}

void CAviButton::LoadAVI(UINT nAviID)
{
    m_AviID =nAviID;
}
/////////////////////////////////////////////////////////////////////////////
// CAviButton message handlers

void CAviButton::onmousemove(UINT nFlags CPoint point) 
{
// TODO: Add your message hand

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4804  2013-05-25 11:48  ImageMosaic\AviButton.cpp

     文件       1545  2013-05-25 11:43  ImageMosaic\AviButton.h

     文件     120832  2013-05-05 14:09  ImageMosaic\data\publish.avi

     文件      77824  2013-05-05 14:08  ImageMosaic\data\snap.avi

     文件     106496  2013-05-05 14:09  ImageMosaic\data\stitch.avi

     文件      28526  2013-11-17 16:23  ImageMosaic\Debug\AviButton.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\AviButton.sbr

     文件      25379  2013-11-17 16:23  ImageMosaic\Debug\Dib.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\Dib.sbr

     文件      11801  2013-11-17 16:23  ImageMosaic\Debug\growmat.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\growmat.sbr

     文件    3867648  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.bsc

     文件     368731  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.exe

    I.A....    823048  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.ilk

     文件      30344  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.obj

     文件    7207264  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.pch

     文件     754688  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.pdb

     文件       7436  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.res

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaic.sbr

     文件      16288  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaicDoc.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaicDoc.sbr

     文件      73802  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaicView.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\ImageMosaicView.sbr

     文件      35723  2013-11-17 16:23  ImageMosaic\Debug\imgfeatures.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\imgfeatures.sbr

     文件      24493  2013-11-17 16:23  ImageMosaic\Debug\kdtree.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\kdtree.sbr

     文件      39712  2013-11-17 16:23  ImageMosaic\Debug\ls_minimizer.obj

     文件          0  2013-11-17 16:23  ImageMosaic\Debug\ls_minimizer.sbr

     文件      47059  2013-11-17 16:23  ImageMosaic\Debug\ls_observation.obj

............此处省略110个文件信息

评论

共有 条评论