摘要 |
The invention is made in the field of encoding and decoding at least one orientation vector of a connected component. When quantizing vector components for encoding, an acceptable quantization deviation of encoded vector components sometimes leads to unacceptable deviations of calculated vector components. Therefore, a method is proposed which comprises quantizing and de-quantizing a first and a second component of the vector, and encoding the quantized first and second component and a bit signalling the sign of a third component of said vector, using the pre-determined length and the de-quantized first and second component for determining whether a calculated absolute of an approximation of the third component of said vector is smaller than a first threshold, and, if the calculated absolute is smaller than the first threshold, determining, quantizing and encoding a residual between the calculated absolute of the third component and the absolute of the third component. |