Pine nuts selection using X-ray images and logistic regression