首页 开发技术 其它     /    纹理提取,图像处理中经常要用的特征提取,尤其是在做跟踪的时候

纹理提取,图像处理中经常要用的特征提取,尤其是在做跟踪的时候

上传者: mrday | 上传时间:2024/1/20 9:29:28 | 文件大小:3.93MB | 文件类型:zip
纹理提取,图像处理中经常要用的特征提取,尤其是在做跟踪的时候
图像处理中,纹理特征的提取部分代码如下//计算纹理特征voidCTextureDlg::OnBtnComputeTexture(){ doubledEnergy =0.0; doubledEntropy =0.0; doubledInertiaQuadrature=0.0; doubledLocalCalm =0.0; doubledCorrelation =0.0; doubledEnergy1 =0.0; doubledEntropy1 =0.0; doubledInertiaQuadrature1=0.0; doubledLocalCalm1 =0.0; doubledCorrelation1 =0.0; unsignedchar**arLocalImage; arLocalImage=cmatrix(0,m_grayShow.FilterWindowWidth-1,0,m_grayShow.FilterWindowWidth-1); introlltimeH=m_grayShow.ImageHeight/m_grayShow.FilterWindowWidth; introlltimeW=m_grayShow.ImageWidth/m_grayShow.FilterWindowWidth; inti,j; intp,q; //将图像分成若干个窗口,计算其纹理均值 for(i=0;i<rolltimeH;i++) { for(j=0;j<rolltimeW;j++) { //首先赋值给子窗口 for(p=0;p<m_grayShow.FilterWindowWidth;p++) { for(q=0;q<m_grayShow.FilterWindowWidth;q++) { arLocalImage[p][q]=m_grayShow.ImageArray[i*m_grayShow.FilterWindowWidth+p][j*m_grayShow.FilterWindowWidth+q]; } } m_grayShow.ComputeMatrix(arLocalImage,m_grayShow.FilterWindowWidth); m_grayShow.ComputeFeature(dEnergy1,dEntropy1,dInertiaQuadrature1,dCorrelation1,dLocalCalm1,m_grayShow.PMatrixH,m_grayShow.GrayLayerNum); dEnergy+=dEnergy1; dEntropy+=dEntropy1; dInertiaQuadrature+=dInertiaQuadrature1; dCorrelation+=dCorrelation1; dLocalCalm+=dLocalCalm1; } } dEnergy/=(rolltimeH*rolltimeW); dEntropy/=(rolltimeH*rolltimeW); dInertiaQuadrature/=(rolltimeH*rolltimeW); dCorrelation/=(rolltimeH*rolltimeW); dLocalCalm/=(rolltimeH*rolltimeW); m_dEnergy =dEnergy; m_dEntropy =dEntropy; m_dInertiaQuadrature=dInertiaQuadrature; m_dCorrelation =dCorrelation; m_dLocalCalm =dLocalCalm; UpdateData(false);} 本软件ID:2303737

文件下载

资源详情

[{"title":"(46个子文件3.93MB)纹理提取,图像处理中经常要用的特征提取,尤其是在做跟踪的时候","children":[{"title":"图像的纹理分析应用实例","children":[{"title":"nrutil.h <span style='color:#111;'>1.41KB</span>","children":null,"spread":false},{"title":"Texture.aps <span style='color:#111;'>21.24KB</span>","children":null,"spread":false},{"title":"Dib.h <span style='color:#111;'>964B</span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'>209B</span>","children":null,"spread":false},{"title":"Texture.cpp <span style='color:#111;'>2.03KB</span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'>1007B</span>","children":null,"spread":false},{"title":"GrayShow.cpp <span style='color:#111;'>7.77KB</span>","children":null,"spread":false},{"title":"TextureDlg.h <span style='color:#111;'>1.50KB</span>","children":null,"spread":false},{"title":"Texture.rc <span style='color:#111;'>5.89KB</span>","children":null,"spread":false},{"title":"AddSampleDlg.h <span style='color:#111;'>1.14KB</span>","children":null,"spread":false},{"title":"Texture.h <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"Texture.opt <span style='color:#111;'>379.00KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Texture.bsc <span style='color:#111;'>3.27MB</span>","children":null,"spread":false},{"title":"TextureDlg.sbr <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"GrayShow.obj <span style='color:#111;'>24.91KB</span>","children":null,"spread":false},{"title":"nrutil.obj <span style='color:#111;'>21.91KB</span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'>388.00KB</span>","children":null,"spread":false},{"title":"AddSampleDlg.sbr <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'>225.00KB</span>","children":null,"spread":false},{"title":"Texture.res <span style='color:#111;'>8.75KB</span>","children":null,"spread":false},{"title":"Texture.sbr <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Dib.sbr <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Texture.exe <span style='color:#111;'>2.04MB</span>","children":null,"spread":false},{"title":"nrutil.sbr <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"Dib.obj <span style='color:#111;'>25.49KB</span>","children":null,"spread":false},{"title":"GrayShow.sbr <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"StdAfx.obj <span style='color:#111;'>104.24KB</span>","children":null,"spread":false},{"title":"Texture.obj <span style='color:#111;'>23.14KB</span>","children":null,"spread":false},{"title":"TextureDlg.obj <span style='color:#111;'>43.56KB</span>","children":null,"spread":false},{"title":"StdAfx.sbr <span style='color:#111;'>1.30MB</span>","children":null,"spread":false},{"title":"Texture.pch <span style='color:#111;'>6.52MB</span>","children":null,"spread":false},{"title":"AddSampleDlg.obj <span style='color:#111;'>16.46KB</span>","children":null,"spread":false}],"spread":false},{"title":"nrutil.cpp <span style='color:#111;'>10.57KB</span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>3.51KB</span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"Texture.plg <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"res","children":[{"title":"Texture.rc2 <span style='color:#111;'>399B</span>","children":null,"spread":false},{"title":"Texture.ico <span style='color:#111;'>1.05KB</span>","children":null,"spread":false}],"spread":false},{"title":"Texture.dsp <span style='color:#111;'>4.47KB</span>","children":null,"spread":false},{"title":"Texture.ncb <span style='color:#111;'>153.00KB</span>","children":null,"spread":false},{"title":"AddSampleDlg.cpp <span style='color:#111;'>1.26KB</span>","children":null,"spread":false},{"title":"GrayShow.h <span style='color:#111;'>2.31KB</span>","children":null,"spread":false},{"title":"Dib.cpp <span style='color:#111;'>4.33KB</span>","children":null,"spread":false},{"title":"TextureDlg.cpp <span style='color:#111;'>8.28KB</span>","children":null,"spread":false},{"title":"Texture.clw <span style='color:#111;'>1.62KB</span>","children":null,"spread":false},{"title":"Texture.dsw <span style='color:#111;'>539B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 初学者a:
    用VC6.0实现的纹理特征代码2013-04-18
  • luochengqun1988:
    这些资料挺好的,可以借鉴学习。2013-02-28
  • guokeyou:
    还行,能测出几个参数,可以借鉴一下。2012-08-15
  • xgh918:
    恩,还可以吧,只能测出几个参数,说清楚啊2012-03-02
  • Q281810158Q:
    使用VC6.0实现的纹理特征代码,很实用,希望可以多加点纹理特征2012-01-19

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明