gusucode.com > bp网络实现0~9数字识别系统matlab源码程序 > example_figure.m

    %bp3_figure:to look the figure of input&output
%==============
%==============


[name,path]=uigetfile('*.bmp');
pathname=strcat(path,name);
I=imread(pathname);
b=rgb2gray(I);

b1=imnoise(b,'gaussian',0,0.002);   % 对输入图像加上均值为0方差为0.002的高斯噪声

b1Zoom=imresize(b1,[96,96],'bilinear');  %为方便在界面上显示,将图像I放大
imshow(b1Zoom)
% set(Hbp3_axes,'current_data',b1Zoom);
%set(Hbp3_axes,'Userdata',plot(x,y)); % 也可以