1. A method of encoding an image comprising: creating a prediction block of a current block by performing one of intra prediction and inter prediction on the current block; filtering the prediction block with a predetermined filter; and encoding the current block based on the filtered prediction block.