1. An image processing apparatus comprising: a feature detecting unit which detects features of image information for a plurality of classes, the image information being input for learning; a belongingness calculating unit which calculates the degrees of belongingness of the detected features to the classes; a weighting unit which weights pieces of the input image information based on the degrees of belongingness; and a prediction coefficient calculating unit which calculates prediction coefficients for the classes based on the weighted pieces of the image information.