91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3.44MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-09-12
  • 語(yǔ)言: 其他
  • 標(biāo)簽: SIFTSURFORB??

資源簡(jiǎn)介

Opencv下利用SIFT、SURF、ORB三種特征點(diǎn)實(shí)現(xiàn)圖像匹配

資源截圖

代碼片段和文件信息

#include?“StdAfx.h“
#include?“CvvImage.h“
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
CV_INLINE?RECT?NormalizeRect(?RECT?r?);
CV_INLINE?RECT?NormalizeRect(?RECT?r?)
{
???int?t;
???if(?r.left?>?r.right?)
???{
??????t?=?r.left;
??????r.left?=?r.right;
??????r.right?=?t;
???}
???if(?r.top?>?r.bottom?)
???{
??????t?=?r.top;
??????r.top?=?r.bottom;
??????r.bottom?=?t;
???}

???return?r;
}
CV_INLINE?CvRect?RectToCvRect(?RECT?sr?);
CV_INLINE?CvRect?RectToCvRect(?RECT?sr?)
{
???sr?=?NormalizeRect(?sr?);
???return?cvRect(?sr.left?sr.top?sr.right?-?sr.left?sr.bottom?-?sr.top?);
}
CV_INLINE?RECT?CvRectToRect(?CvRect?sr?);
CV_INLINE?RECT?CvRectToRect(?CvRect?sr?)
{
???RECT?dr;
???dr.left?=?sr.x;
???dr.top?=?sr.y;
???dr.right?=?sr.x?+?sr.width;
???dr.bottom?=?sr.y?+?sr.height;

???return?dr;
}
CV_INLINE?IplROI?RectToROI(?RECT?r?);
CV_INLINE?IplROI?RectToROI(?RECT?r?)
{
???IplROI?roi;
???r?=?NormalizeRect(?r?);
???roi.xOffset?=?r.left;
???roi.yOffset?=?r.top;
???roi.width?=?r.right?-?r.left;
???roi.height?=?r.bottom?-?r.top;
???roi.coi?=?0;

???return?roi;
}
void??FillBitmapInfo(?BITMAPINFO*?bmi?int?width?int?height?int?bpp?int?origin?)
{
???assert(?bmi?&&?width?>=?0?&&?height?>=?0?&&?(bpp?==?8?||?bpp?==?24?||?bpp?==?32));

???BITMAPINFOHEADER*?bmih?=?&(bmi->bmiHeader);

???memset(?bmih?0?sizeof(*bmih));
???bmih->biSize?=?sizeof(BITMAPINFOHEADER);
???bmih->biWidth?=?width;
???bmih->biHeight?=?origin???abs(height)?:?-abs(height);
???bmih->biPlanes?=?1;
???bmih->biBitCount?=?(unsigned?short)bpp;
???bmih->biCompression?=?BI_RGB;
???if(?bpp?==?8?)
???{
??????RGBQUAD*?palette?=?bmi->bmiColors;
??????int?i;
??????for(?i?=?0;?i???????{
?????????palette[i].rgbBlue?=?palette[i].rgbGreen?=?palette[i].rgbRed?=?(BYTE)i;
?????????palette[i].rgbReserved?=?0;
??????}
???}
}
CvvImage::CvvImage()
{
???m_img?=?0;
}
void?CvvImage::Destroy()
{
???cvReleaseImage(?&m_img?);
}
CvvImage::~CvvImage()
{
???Destroy();
}
bool??CvvImage::Create(?int?w?int?h?int?bpp?int?origin?)
{
???const?unsigned?max_img_size?=?10000;

???if(?(bpp?!=?8?&&?bpp?!=?24?&&?bpp?!=?32)?||
??????(unsigned)w?>=??max_img_size?||?(unsigned)h?>=?max_img_size?||
??????(origin?!=?IPL_ORIGIN_TL?&&?origin?!=?IPL_ORIGIN_BL))
???{
??????assert(0);?//?most?probably?it?is?a?programming?error
??????return?false;
???}
???if(?!m_img?||?Bpp()?!=?bpp?||?m_img->width?!=?w?||?m_img->height?!=?h?)
???{
??????if(?m_img?&&?m_img->nSize?==?sizeof(IplImage))
?????????Destroy();
??????/*?prepare?IPL?header?*/
??????m_img?=?cvCreateImage(?cvSize(?w?h?)?IPL_DEPTH_8U?bpp/8?);
???}
???if(?m_img?)
??????m_img->origin?=?origin?==?0???IPL_ORIGIN_TL?:?IPL_ORIGIN_BL;
???return?m_img?!=?0;
}
void??CvvImage::CopyOf(?CvvImage&?image?int?desired_color?)
{
???IplImage*?img?=?image.GetI

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????7163??2012-08-09?11:41??DetectFeaturePoint\DetectFeaturePoint\CvvImage.cpp

?????文件???????2015??2014-03-07?19:08??DetectFeaturePoint\DetectFeaturePoint\CvvImage.h

?????文件?????107008??2017-01-13?13:23??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.aps

?????文件???????2149??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.cpp

?????文件????????514??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.h

?????文件??????11780??2017-01-13?13:23??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.rc

?????文件???????6577??2017-01-13?13:47??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.vcxproj

?????文件???????2247??2017-01-12?19:13??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.vcxproj.filters

?????文件????????143??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePoint.vcxproj.user

?????文件??????14292??2017-01-13?13:41??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePointDlg.cpp

?????文件???????1705??2017-01-13?09:56??DetectFeaturePoint\DetectFeaturePoint\DetectFeaturePointDlg.h

?????文件???????3222??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\ReadMe.txt

?????文件??????67777??2009-08-31?02:31??DetectFeaturePoint\DetectFeaturePoint\res\DetectFeaturePoint.ico

?????文件????????692??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\res\DetectFeaturePoint.rc2

?????文件???????2118??2017-01-13?09:57??DetectFeaturePoint\DetectFeaturePoint\resource.h

?????文件????????151??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\stdafx.cpp

?????文件???????1632??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\stdafx.h

?????文件????????234??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint\targetver.h

?????文件????????921??2017-01-12?17:07??DetectFeaturePoint\DetectFeaturePoint.sln

????..A..H.?????17920??2017-01-13?13:49??DetectFeaturePoint\DetectFeaturePoint.suo

?????文件?????119808??2017-01-13?13:47??DetectFeaturePoint\Release\DetectFeaturePoint.exe

?????文件????2099200??2014-04-15?16:57??DetectFeaturePoint\Release\opencv_core249.dll

?????文件?????717824??2014-04-15?16:58??DetectFeaturePoint\Release\opencv_features2d249.dll

?????文件????2138624??2017-01-13?12:31??DetectFeaturePoint\Release\opencv_highgui249.dll

?????文件????1914368??2014-04-15?16:58??DetectFeaturePoint\Release\opencv_imgproc249.dll

?????文件????1217024??2014-04-15?16:59??DetectFeaturePoint\Release\opencv_legacy249.dll

?????文件?????547328??2014-04-15?17:00??DetectFeaturePoint\Release\opencv_nonfree249.dll

?????文件??????81058??2015-11-05?13:15??DetectFeaturePoint\TestData\1-1.jpg

?????文件?????137887??2017-01-12?21:20??DetectFeaturePoint\TestData\1-2.jpg

?????文件??????35652??2015-10-29?12:06??DetectFeaturePoint\TestData\1-3.jpeg

............此處省略16個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源