Colour measurements of pigmented rice grain using flatbed scanning and image analysis