8. A decoding method for images or videos, comprising: entropy decoding a code stream of an image to obtain an index and a project parameter of a visual word; obtaining an image of a visual object from a visual dictionary according to the index of the visual word; adjusting the image of the visual object with reference to the project parameter; overlapping adjusted images of all of visual objects to obtain a decoded image.
8. A decoding method for images or videos, comprising: entropy decoding a code stream of an image to obtain an index and a project parameter of a visual word; obtaining an image of a visual object from a visual dictionary according to the index of the visual word; adjusting the image of the visual object with reference to the project parameter; overlapping adjusted images of all of visual objects to obtain a decoded image. 9. The method of claim 8 , further comprising: entropy decoding the code stream to obtain residuals; reversely decoding the residuals to obtain differences between the image to be decoded and the visual word; overlapping the adjusted image of all of the visual objects and the differences to obtain a decoded image.