Size and alignment of a digit in an image for neural network training
3 次查看(过去 30 天)
显示 更早的评论
Hi, I have been working on OCR using the Neural Network toolbox but I have a few fundamental doubts. Suppose I have the following images of digits:--
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148386/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148387/image.png)
Since the digits are of different sizes, will it affect the neural network training and simulation? What are the parameters that a neural network uses to recognise images(like size, pixel values, shape, alignment, etc)? Please advise.
0 个评论
采纳的回答
Greg Heath
2013-6-12
The input to the net from a single image is just a column vector of numbers of dimension I obtained by feature extraction. The feature extraction of an image of size r x c can be complicated or as simple as columnisation via
input = image(:);
size(input) = [ I 1 ] = [ r*c 1 ]
Hope this helps.
Thank you for formally accepting my answer
Greg
4 个评论
Greg Heath
2013-6-14
No. However, maybe one of the resident image experts will respond.
If there is no response, try making that another posted question.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!