COUNT OF COINS USING IMAGE PROCESSING TOOLBOX.
When trying to find coins according to their area, you didnt take into consideration the distance between the camera and the coins . with that in mind, you program only works for that typical distance which your photo was taken at.
I did a program which takes into consideration ,COLOR and distance between the camera and coins . feel free to email me :)