A decoding method is disclosed that comprises: - decoding (S110, S120) a plurality of picture blocks; - clustering (S130) the plurality of decoded picture blocks into clusters; - decoding (S140) at least one projection function for each cluster; - applying (S150), on at least one decoded picture block, the at least one projection function associated with the cluster to which said at least one decoded picture block belongs.