This reminds me of the infamousbarometer problem. Ask the guy in the picture. He might know.
Or you can use imdistline() or improfile. Also see my attached spatial calibration demo. I'm not sure exactly what you're calling a grain, but if it's like the size of salt grains, then those are not resolvable in that photo.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.