Natural Image Statistics A probabilistic approach to early computational vision 自然图像统计早期计算视觉的一种概率方法 源代码.doc

Natural Image Statistics A probabilistic approach to early computational vision 自然图像统计早期计算视觉的一种概率方法 源代码.doc

  1. 1、本文档共48页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
readme This directory contains the Matlab(TM) code and natural image data to reproduce most of the experiments on in chapters 1-11 and Section 13.1 of the book "Natural Image Statistics" by Hyvarinen, Hurri, and Hoyer, published by Springer. Code by Aapo Hyvarinen partly based on code by Patrik O. Hoyer and rotavg.m code courtesy of Bruno Olshausen This is version 1.0, 11 Dec 2008, run with Matlab 7.5.0 MAIN FILE: figures.m Running this file will do all the main experiments DATA DIRECTORY: data/ This directory contains the natural images used in the experiments SAMPLING: sampleimages.m Sample patches from images in directory "data" PREPROCESSING: removeDC.m Remove DC from image patches Note: there is no single command for whitening the data, see figures.m on how to use the results from pca.m to whiten your data MAIN ALGORITHMS: pca.m %principal component analysis ica.m %FastICA for whitened data isa_est.m %estimation of ISA model for whitened data tica.m %estimation of topographic ICA for whitened data overcomplete.m %estimation of energy-based overcomplete model for whitened data OTHER FILES: subroutines of the above, including plotting and terminal reporting commands. removedc % Removes DC component from image patches % Data given as a matrix where each patch is one column vectors % That is, the patches are vectorized. function Y=removeDC(X); % Subtract local mean gray-scale value from each patch in X to give output Y Y = X-ones(size(X,1),1)*mean(X); return; rotavg % rotavg.m - function to compute rotational average of (square) array % by Bruno Olshausen % % function f = rotavg(array) % % array can be of dimensions N x N x M, in which case f is of % dimension NxM. N should be even. % function f = rotavg(array) [N N M]=size(array); [X Y]=meshgrid(-N/2:N/2-1,-N/2:N/2-1); [theta rho]=cart2pol(X,Y); rho=round(rho); i=cell(N/2+1,1); for r=0:N/2 i{r+1}=find(rho==r); end f=zeros(N/2+1,M); for m=1:M a=array(:,:,m); for r=0:N/2 f(r+1,m)=mean(a(i{r+1})); end end

文档评论(0)

bk040529 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6213125212000003

1亿VIP精品文档

相关文档