3-D granulometry using image processing