a
k
is the k-th bit representation. After this
transformation, TGCBPM and WTGCBPM use
respective number of non-matching points (NNMP)
as matching criteria which are given as:
,
11 1
1
00
(,)
2{(,) ( , )}
TGCBPM NTB
NN K
kNTB t t
kk
ijkNTB
NNMP m n
ij g i mj n
(3
,
11 1
1
00
(,)
(, ) ( , )
WTGCBPM NTB
NN K
tt
kk
ijkNTB
NNMP m n
ij g i mj n
where K represents the pixel-depth and NTB is the
number of truncated bits, the motion block size is
NN, and –s ≤ m, n ≤ s is the search range. The kth
most significant bit of the Gray-coded image pixel
frame of time t is represented as g
t
k
(i, j). Compared
with the previous BPM based ME algorithms,
TGCBPM and WTGCBPM based ME show
significant gains in terms of the ME accuracy.
Since all the matching criteria of BPMs try to
replace the SAD or SSD with the bitwise operations
for reduction of computational complexity, their
output must be similar to the SAD or SSD in order
to find a more accurate motion vector. Therefore, if
one can find a matching criterion (using only the
bitwise operations) whose output is similar to the
SAD or SSD between two image bit-planes, its ME
accuracy increases substantially. In this paper, a
transformation method which is a slight
modification of the typical Gray-code mapping is
proposed. And together with a transformation
method, a corresponding extended bitwise
operation-only matching criterion shows similar
characteristics with the output of the SSD.
Experimental results demonstrate that the proposed
algorithm outperforms other BPM based ME
algorithms while preserving the binary matching
characteristic.
The rest of this paper is organized as follows: In
Section II, the proposed algorithm is presented.
Experimental results and analyses are given in
Section III. Finally, Section IV provides conclusions.
2 PROPOSED ALGORITHM
Since the Gray-coded BPMs use only some of the
first most significant bits of pixels, they are very
similar to the quantized frame based ME except the
way of handling the quantized pixels and the
matching criterion (Choi and Jeong, 2013). For
example, when 2 bit-planes are used, their symbols
for respective matching criteria are in Table 1.
Table 1: Symbols for the quantized frame based ME and
the Gray-coded BPM based ME when using 2 bit-planes.
Quantized Symbol Quantized Frame Gray Coded
0
00
00
1
01
01
2
10
11
3
11
10
Note that the Gray-coded BPM based ME uses one
of the metrics of (3) and the quantized frame based
ME uses the metric of SAD. The metric distribution
of Gray-coded BPMs in terms of the absolute
difference between two quantized symbols is in
Table 2.
Table 2: Metric distributions of TGCBPM and
WTGCBPM when using 2 bit-planes.
Absolute Difference TGCBPM WTGCBPM
0 0 0
1 1 or 2 1
2 3 2
3 2 1
For TGCBPM, when two Gray-coded symbols
are (00, 01) or (11, 10), their distances are 1. And
when two symbols are (01, 11), their distance is 2.
Note that when the absolute difference between two
quantized symbols is k (0 ≤ k ≤ 3), its expected true
absolute difference between two pixels is 64k
(when the pixel bit-depth is 8). That is, the actual
distortion between two pixels in terms of the SAD is
proportional to the absolute difference between these
quantized symbols. Therefore, it would be better for
a matching criterion if the absolute difference
between two quantized symbols be small, its
matching criterion output be small, and vice versa.
To this end, the Gray coded bit-planes are inverted
as follows:
~, 1
kk
hgNTBkK
(4)
where K represents the pixel-depth, ~ represents the
Boolean NOT operation, NTB is the number of
truncated bits and g
k
is the k-th Gray bit
representation. Note that when NTB = 6, this code
allocation is that of the typical 2BT. And note also
that this inversion process does not violate the
property of the typical Gray codes that consecutive
codewords differ only in one bit position no matter
what NTB is. A corresponding matching criterion of
the bit-inverted Gray coded BPM (BGCBPM) is
proposed as follows:
Bit-invertedGrayCodedBit-planeMatchingforLowComplexityMotionEstimation
231