Rice quality analysis using image processing techniques