Patent ID: 8897581

Claim:
A method comprising: accessing a prediction image; identifying at least one post-prediction filtering area within the accessed prediction image; selecting a post-prediction filtering mode among one or more post-prediction filtering modes, wherein the post-prediction filtering mode comprises: accessing an array of input data; performing median filtering to the array of input data to output first filtered data; processing the first filtered data to determine one or more stair steps; for each of the one or more determined stair steps, determining a step length, a middle step position, and a middle step value; and for at least an input data point in the array of input data computing a new value for the input data point, wherein the new value is proportional to two or more middle step values that bracket the input data point; applying the selected post-prediction filtering mode to the at least one post-prediction filtering area; outputting a filtered prediction image based on the post-prediction filtering mode that is applied to the at least one post-prediction filtering area; and communicating to a receiver information related to the at least one post-prediction filtering area and the selected post-prediction filtering mode.