Image processing system generator model,neural network

版本 1.0.0.0 (457.3 KB) 作者: shalini c
creating blocks in simulink using xilinx blocksets
456.0 次下载
更新时间 2015/3/5

查看许可证

This is the model which I have created for testing a neural network...where constant ,constant1,constant2 ,etc are the inputs for the model.weights i have collected from matlab execution.These inputs are the major axis,minor axis ,aspect ratio and area of an image.last one is bias value.Can any1 tell me is this model is correct. How do I create system generator blocks for feeding these inputs using image not manually.I mean pre processing and extracting those four shape features.
[f,p] = uigetfile('*.jpg;*.bmp');
I = imread([p f]);
a = imresize(I,[256 256]);
%% shape
im=a;
figure(1)
subplot(2,3,1); imshow(im),impixelinfo;
title('original image');
ValRL1=140;
ValRH1=250;
ValGL1=22;
ValGH1=150;
ValBL1=20;
ValBH1=100;
Iy=(im(:,:,1)>ValRL1)&(im(:,:,2)>ValGL1)&(im(:,:,3)>ValBL1) & (im(:,:,1)<ValRH1)&(im(:,:,2)<ValGH1)&(im(:,:,3)<ValBH1);
subplot(2,3,2); imshow(Iy),impixelinfo; title('binary image');
Iy = imfill(Iy,'holes');
Iy=bwareaopen(Iy,250);
subplot(2,3,3); imshow(Iy);
title('binary image');
[r,c]=find(Iy);
majoraxis=max(c)-min(c);
minoraxis=max(r)-min(r);
Aspectratio=majoraxis/minoraxis
[Label,Total]=bwlabel(Iy,8);
num=1;
Parameter=regionprops(Label,'all');
Obj_area1=Parameter(num).Area

引用格式

shalini c (2024). Image processing system generator model,neural network (https://www.mathworks.com/matlabcentral/fileexchange/49926-image-processing-system-generator-model-neural-network), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0