Modeling shapes using uniform cubic B-splines for rice seed image analysis