Content-based digital-image classification method