The present invention relates to a method for encoding an image, which comprises: determining a scan order for converting one or more sub-blocks included in a transform block to be equal to a quantization order for the one or more sub-blocks; determining the sub-block to be transformed among the one or more sub-blocks according to the scan order; and performing image transformation on the determined sub-block by applying one or more transformation matrices.;COPYRIGHT KIPO 2017
展开▼