1. A method of coding an image or a sequence of images generating a data stream that include data representative of pixel groups, referred to as blocks, in one of said images, the method including the steps of: grouping blocks in a cluster of blocks according to proximity of their respective values corresponding to at least one block parameter to be coded; determining a value of said parameter, said value being characteristic of said group of blocks; and coding blocks of said cluster, where the values of said blocks for said parameter are coded implicitly by inheritance of said characteristic value or are coded as refinements relative to said characteristic value, and coding a data structure associated with said cluster of blocks, said data structure including data associated with said characteristic value.