资源简介

BP神经网络图像分类程序,代码很好懂,适合初学者。样本选的不是很大。

资源截图

代码片段和文件信息

clear all;

%<----------------------------!运用BP网络进行图像分类--------------------------->
%读入样本10即遥感图像的背景
I=imread(‘10.jpg‘);
%将样本图像降维处理
R=I(::1);
G=I(::2);
B=I(::3);
%灰度值归一化
R=im2double(R);
G=im2double(G);
B=im2double(B);
[M N]=size(R);
R=reshape(R‘[1 M*N]);
G=reshape(G‘[1 M*N]);
B=reshape(B‘[1 M*N]);
%初始化输入矢量P和输出矢量T
P=[];
T=[];
P=[R;G;B];
T=[0;0;0];
[m n]=size(P);
T=concur(Tn);

%读入样本图像0
I=imread(‘0.jpg‘);
%将样本图像降维处理
R=I(::1);
G=I(::2);
B=I(::3);
%灰度值归一化
R=im2double(R);
G=im2double(G);
B=im2double(B);
[M N]=size(R);
R=reshape(R‘[1 M*N]);
G=reshape(G‘[1 M*N]);
B=reshape(B‘[1 M*N]);
P1=[R;G;B];
T1=[0.1;0.3;0.5];
P=[PP1];
[m n]=size(P1);
T1=concur(T1n);
T=[TT1];

%读入样本图像1
I=imread(‘1.jpg‘);
%将样本图像降维处理
R=I(::1);
G=I(::2);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-07-24 18:12  BPNeural network image classification process\
     文件         686  2011-01-19 11:26  BPNeural network image classification process\0.jpg
     文件         765  2011-01-19 11:26  BPNeural network image classification process\1.jpg
     文件         643  2011-01-19 11:26  BPNeural network image classification process\10.jpg
     文件         741  2011-01-19 11:26  BPNeural network image classification process\2.jpg
     文件         644  2011-01-19 11:26  BPNeural network image classification process\3.jpg
     文件         782  2011-01-19 11:26  BPNeural network image classification process\4.jpg
     文件         726  2011-01-19 11:26  BPNeural network image classification process\5.jpg
     文件         723  2011-01-19 11:26  BPNeural network image classification process\6.jpg
     文件         755  2011-01-19 11:26  BPNeural network image classification process\7.jpg
     文件         969  2011-01-19 11:26  BPNeural network image classification process\8.jpg
     文件         641  2011-01-19 11:26  BPNeural network image classification process\9.jpg
     目录           0  2013-07-24 18:12  BPNeural network image classification process\bimetric_binary_pso\
     目录           0  2013-07-24 18:12  BPNeural network image classification process\bimetric_binary_pso\src\
     文件        4026  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\f_landscape.txt
     文件         505  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\f_landscape_12_20.txt
     文件       32793  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\main (avec edgeFind etc).c
     文件       33356  2009-10-21 09:07  BPNeural network image classification process\bimetric_binary_pso\src\main.c
     文件         512  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q10.txt
     文件       50103  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q100.txt
     文件       41601  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q100paper.txt
     文件         474  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q12.txt
     文件          59  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q5.txt
     文件       12552  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q50.txt
     文件     1250503  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Q500.txt
     文件        3097  2008-11-03 21:33  BPNeural network image classification process\bimetric_binary_pso\src\Qr.txt
     文件        8018  2013-06-06 16:10  BPNeural network image classification process\LiChen.asv
     文件        8018  2013-06-06 16:10  BPNeural network image classification process\LiChen.m
     文件       25088  2013-06-06 13:51  BPNeural network image classification process\Thumbs.db
     文件      623984  2011-01-19 11:26  BPNeural network image classification process\tm2000mask.jpg
     文件       96641  2011-01-19 11:26  BPNeural network image classification process\tm2003mask.jpg
............此处省略1个文件信息

评论

共有 条评论