mamech
Full Member level 3
hello
I am newbie in world of image processing. I want to make a simple classifier using neural networks using scilab. I created 3 photos, one of circle , one of rectangle and one of triangle. I wanted to get a descriptive value for those images, so I converted them to binary and got their histograms. The problem is that histogram values are not good enough to be fed to neural network, for example , I got thee histograms for the three images:
I tried to give these inputs as they are to the neural network toolbox, and I got error related to singularity problem. I concluded that this because the numbers are so huge. I know that I am missing something. should I divide the histogram by a factor? I read about something called histogram normalization, does it have something to do with this?
I am newbie in world of image processing. I want to make a simple classifier using neural networks using scilab. I created 3 photos, one of circle , one of rectangle and one of triangle. I wanted to get a descriptive value for those images, so I converted them to binary and got their histograms. The problem is that histogram values are not good enough to be fed to neural network, for example , I got thee histograms for the three images:
imhis1 =
2930.
315502.
imhis2 =
3504.
314928.
imhis3 =
4160.
314272.
I tried to give these inputs as they are to the neural network toolbox, and I got error related to singularity problem. I concluded that this because the numbers are so huge. I know that I am missing something. should I divide the histogram by a factor? I read about something called histogram normalization, does it have something to do with this?
Code:
im1=imread('E:\Science\Courses\Artificial Intelligience\Learning - Neural Networks\Image Recognition\shape1.jpg');
im2=imread('E:\Science\Courses\Artificial Intelligience\Learning - Neural Networks\Image Recognition\shape2.jpg');
im3=imread('E:\Science\Courses\Artificial Intelligience\Learning - Neural Networks\Image Recognition\shape3.jpg');
im1b=im2bw(im1,0.2)
im2b=im2bw(im2,0.2)
im3b=im2bw(im3,0.2)
imhis1=imhist(im1b,2)
imhis2=imhist(im2b,2)
imhis3=imhist(im3b,2)