How to use image input with Neural Network?
5 views (last 30 days)
Show older comments
I'm new for neural network. I don't know how to train and test neural network with image processing. when I read image into matlab it will be matrix and I covert to gray and 2*2double matrix. If I have many image matrix to train. Should I have to concatenate every image matrix to one image matrix that will be same row but many column or Should I have to covert image matrix to one column per one image first and concatenate every column to one image matrix ?. How I have to do and what function to do that?
0 Comments
Accepted Answer
Greg Heath
on 24 Mar 2012
If you have N images of size I =row*column, each image is columnized to form a column in the input matrix with size
[I N ] =size(iput)
Hope this helps.
Greg
2 Comments
Greg Heath
on 15 Apr 2015
col = image(:);
Although, using extracted features instead of the whole image is recommended.
More Answers (6)
Noureldin Mohammed Zakaria
on 20 Oct 2017
How to input an image and let matlab to detecet it using neural network ?
0 Comments
Greg Heath
on 1 Apr 2013
input = [ D1(:) D2(:) D3(:) ]
Thank you for formally accepting my answer
Greg
0 Comments
Swati memane
on 21 Feb 2014
I am new to matlab..I want to know how to train the set of images using HMM.
0 Comments
subhra pattnaik
on 15 Apr 2015
Sir, actually I am working on blood vessel detection of reinal image given below using the paper attached with it.But I am using neural network toolbox and I don't know what input and target values should be taken so that segmentation of the image can be done.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/176088/image.jpeg)
0 Comments
Ankur Dutt
on 9 May 2015
Greg sir, I extracted features from 90X60 binary image. it is actually a column matrix of 54 elements. but i does not have neural network code for recognition of these segmented 90X60 images. so sir please can you provide me a neural network code that can recognize only 16 characters. sir i also attach a m-file of feature extraction. Thank You.
0 Comments
padmavathi vattikonda
on 27 Jan 2017
good morning sir, Present I am working on the neural networks, I want to know how image will give as input to neural networks and how can I process it. Thank you sir
2 Comments
kevin harianto
on 28 Mar 2022
Edited: kevin harianto
on 28 Mar 2022
I cant seem to get my layered graph to compile into a DAG network. How did you do it? Assembly wont work as well as replacing a layer.
See Also
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!