Method using an interpolation filter adaptively for encoding and decoding an image and an apparatus

The present invention uses an interpolation filter in which the characteristics of the input image is adaptively, there is provided an apparatus and method for coding and decoding an image. The present invention, and a selector for selecting an interpolation filter for generating a prediction block in consideration of the context information of the input image block adaptively, filter for storing a plurality of interpolation filters for each group in response to the context information bank and , under the control of the selector is selected from the filter bank, and characterized by comprising a prediction block generator comprises a particular interpolation filter to interpolate the reference video blocks associated with the input image block. The image encoding and decoding, context information, the interpolation filter, the intra coding mode of the video block, the inter picture coding mode,