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

  • 大小: 8.23MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-05
  • 語言: 其他
  • 標(biāo)簽: 波峰??

資源簡介

灰度直方圖尋找波峰,vs2010實(shí)驗(yàn),采用了opencv

資源截圖

代碼片段和文件信息

//?peak.cpp?:?定義控制臺應(yīng)用程序的入口點(diǎn)。
//

#include?“stdafx.h“





#include?“highgui.h“
#include?“1.h“
#include?“2.h“

#include?“4.h“
#include?“stdio.h“

#include?“cv.h“

void?main()
{
char*?filename;
IplImage*?frame*hframe;

int?fdepth;
????
//將輸入的圖形灰度化后顯示
///
?filename=???“1.png“;
// filename=“F:\\自適應(yīng)閾值分割算法\\模糊閾值\\是\\5.5(準(zhǔn)確找到波峰)\\圖片\\26.jpg“;//輸入圖像(存在本地文件中),任意格式。
//?????filename=“F:\\自適應(yīng)閾值分割算法\\模糊閾值\\是\\5.5(準(zhǔn)確找到波峰)\\遙感圖像\\3.jpg“;
hframe=cvLoadImage(filename1);//1加載圖像
fdepth=hframe->depth;

vector?vctPeak;

frame?=?cvCreateImage(cvGetSize(hframe)?fdepth?1?);//創(chuàng)建一個單通道
cvCvtColor(hframeframeCV_BGR2GRAY);//2將彩色轉(zhuǎn)為灰度(有個問題啊o~~)
?/*
?轉(zhuǎn)為灰度圖像
?(1)原因
?(2)本身是灰度,不會出問題呀
?(3)hframe=cvLoadImage(filename1);//1加載圖像加載的圖像都是三通道的嗎?
*/

cvNamedWindow(“處理前圖像“1);
cvShowImage(“處理前圖像“frame);
///end

int?maxx;
int?a[256]={0};
int?s=0;
int?*feng?=new?int;
zhifang(framemaxxa);
????Get111Peaks(avctPeak);?


s=vctPeak.size();

cout<<“?geshu?“<
for?(?int?i=0;i {
feng[i]=vctPeak[i].nStat;
cout<

}

hua(fengframe->depthas);



cvWaitKey(0);
????cvDestroyWindow(“處理前圖像“);
cvReleaseImage(&frame);

cvDestroyWindow(“處理前圖像直方圖“);
cvDestroyWindow(“直方圖均平均“);
cvDestroyWindow(“閾值分割“);



}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-03-23?21:09??peak\
?????文件??????656138??2015-05-06?11:39??peak\1.bmp
?????文件???????25598??2016-03-15?09:53??peak\1.jpg
?????文件??????913910??2013-06-13?21:55??peak\1.png
?????目錄???????????0??2017-03-23?21:08??peak\Debug\
?????文件???????59392??2017-03-23?21:08??peak\Debug\peak.exe
?????文件??????494660??2017-03-23?21:08??peak\Debug\peak.ilk
?????文件?????1444864??2017-03-23?21:08??peak\Debug\peak.pdb
?????目錄???????????0??2017-03-23?21:05??peak\ipch\
?????目錄???????????0??2017-03-23?21:05??peak\ipch\peak-bb7de758\
?????文件?????2359296??2017-03-23?21:08??peak\ipch\peak-bb7de758\peak-488db9cd.ipch
?????目錄???????????0??2017-03-23?21:07??peak\peak\
?????文件??????656138??2015-05-06?11:39??peak\peak\1.bmp
?????文件?????????242??2017-03-23?21:07??peak\peak\1.h
?????文件???????25598??2016-03-15?09:53??peak\peak\1.jpg
?????文件??????913910??2013-06-13?21:55??peak\peak\1.png
?????文件????????3854??2017-03-23?21:07??peak\peak\2.h
?????文件????????1122??2017-03-23?21:07??peak\peak\3.h
?????文件????????3890??2017-03-23?21:08??peak\peak\4.h
?????目錄???????????0??2017-03-23?21:08??peak\peak\Debug\
?????文件???????13270??2017-03-23?21:08??peak\peak\Debug\CL.read.1.tlog
?????文件?????????638??2017-03-23?21:08??peak\peak\Debug\CL.write.1.tlog
?????文件????????1354??2017-03-23?21:08??peak\peak\Debug\cl.command.1.tlog
?????文件???????????2??2017-03-23?21:08??peak\peak\Debug\link-cvtres.read.1.tlog
?????文件???????????2??2017-03-23?21:08??peak\peak\Debug\link-cvtres.write.1.tlog
?????文件???????????2??2017-03-23?21:08??peak\peak\Debug\link.12120-cvtres.read.1.tlog
?????文件???????????2??2017-03-23?21:08??peak\peak\Debug\link.12120-cvtres.write.1.tlog
?????文件???????????2??2017-03-23?21:08??peak\peak\Debug\link.12120.read.1.tlog
?????文件???????????2??2017-03-23?21:08??peak\peak\Debug\link.12120.write.1.tlog
?????文件????????3190??2017-03-23?21:08??peak\peak\Debug\link.command.1.tlog
?????文件????????7622??2017-03-23?21:08??peak\peak\Debug\link.read.1.tlog
............此處省略31個文件信息

評論

共有 條評論