• 沒有找到結果。

Silica nanoparticles for separation of biologically active amines by capillary electrophoresis with laser-induced native fluorescence detection

N/A
N/A
Protected

Academic year: 2021

Share "Silica nanoparticles for separation of biologically active amines by capillary electrophoresis with laser-induced native fluorescence detection"

Copied!
4
0
0

加載中.... (立即查看全文)

全文

(1)

ANALYSIS AND REDUCTION OF REFERENCE FRAMES FOR MOTION ESTIMATION IN

MPEG-4 AVUJVTkI.264

Yu-Wen Huang’,‘, Bing-Yu Hsieh’, Tu-Chih Wang‘, Shao-Yi Chien’,

Shyh-Yih Ma2, Chun-Fu Shen2, and Liang-Gee Chen‘

1. DSP/IC Design Lab., Graduate Institute of Electronics Engineering

and

Department of Electrical Engineering, National Taiwan University, yuwen

@ v i d e o . e e . n t u . e d u . t w

2. Vivotek

Incorporation, steve@vivotek.com

ABSTRACT

In the new video coding standard, MPEG-4 AVCNVTEI.264, mo- tion estimation is allowed to use multiple reference frames. The

reference software adopts full search scheme, and the increased computation is in proportion to the number of searched reference frames. However, the reduction of prediction residues is highly de- pendent on the nature of sequences, not on the number of searched frames. In this paper, we present a method to speed up the match- ing process for multiple reference frames. For each macroblock, we analyze the available information after intra prediction and mo- tion estimation from previous one frame to determine whether it is necessary to search more frames. The information we use includes selected mode, inter prediction residues, intra prediction residues, and motion vectors. Simulation results show that the proposed al- gorithm can save up to 90% of unnecessary frames while keeping the average miss rate of optimal frames less than 4%.

1. INTRODUCTION

Joint Video Team (JVT) gathered experts from ISO/IEC MPEG-4 Advanced Video Coding (AVC) and ITU-T H.264 to develop the latest standard. The new standard significantly outperforms pre- vious ones in bit-rate reduction. Compared to MPEG-4 advanced simple profile, up to 50% of bit-rate reduction can he achieved. Such improvement mainly comes from the prediction part [l]. Mo- tion estimation at quarter-pixel accuracy with variable block sizes and multiple reference frames greatly reduces prediction errors. Even if inter-frame prediction cannot find a good match, intra pre- diction will make it up instead of directly coding the texture.

The reference software, JM4.3 [Z], adopts full search for both inter and intra prediction. Although there are seven kinds of block

size (16x16, 16x8, 8x16. 8x8, 8x4, 4 ~ 8 . 4 ~ 4 ) for motion compen- sation, the sum of absolute difference (SAD) of a 4x4-block can be reused for the SAD calculation of a larger block. Thus, variable block size motion estimation (ME) does not lead to much increase

in computation. Intra prediction allows 4 modes for 16x16-blocks and 9 modes for 4x4-blocks. The computational load can be es- timated as the SAD calculation of thirteen 16x16-blocks and ex- tra operations for interpolation, which are quite small compared

IO inter prediction. As for the multiple reference frames ME, it contributes to the heaviest computational load. The required oper- ations are proportional to the number of searched frames. Never- theless. the decrease of prediction residues depends on the nature

*The author thanks SiS Education Foundation for financial supporl

Fig. 1. Searching steps of intrdinter prediction with multiple ref- erence frames in H.264 reference software and our method.

of sequences. Sometimes the prediction gain is very significant, but sometimes a lot ofcomputation is wasted without any benefits. In this paper, we present an effective method to accelerate the mul- tiple reference frames ME without significant loss of video quality. The rest of this paper is organized as follows. In Section 2, we will

analyze the Statistics of selected mode, residues, and motion vec-

tors for multiple reference frames. In Section 3, we will describe our fast algorithm. Simulation results will be shown in Section 4. Finally, Section 5 gives a conclusion.

2. ANALYSIS

The left side of Fig. 1 shows the searching steps in H.264 refer- ence software. The prediction of a macrablock (MB) is performed mode by mode with full search scheme. The allowed modes are in- ter16x16, interl6x8, inter8xl6, interXx8, intra4x4, and intra16x16. Note that the inter8x8 mode can be further partitioned into smaller blocks. Given an inter-mode, the reference software carries out the matching process reference frame by reference frame. The best mode is chosen by minimizing a Lagrangian cost function. which considers both 2-D 4x4 Hadamard transformed SAD (SATD) and number of bits required to code the side information. The right side

of Fig. 1 illustrates our method. In Table I , we can see that 80%

of the optimal motion vectors (MVs) determined by the reference software belong to the nearest reference frame. Therefore, we first adopt exhaustive search for intra-modes and inter-modes from pre- vious frame. Next, we analyze the available information including selected mode, intra prediction residues, inter prediction residues, and MVs, to determine if it is helpful to search more frames. In- tuitively, the prediction gain of multiple reference frames mainly results from occluded and uncovered objects.

(2)

Table 1. Statistics of Reference Frames.

Sequences Previous Frame Others

Coastguard 75% 25%

Container 91% 09%

Foreman 76% 24%

Hall Monitor 92% 08%

Mobile Calendar 36% 64% Mother and Daughter 92% 08%

Silent 91% 09%

Stefan 65% 35%

Table Tennis 87% 13%

Weather 90% 10%

Average 80% 20%

CIF i i i c . search range 1-16, t161, 5 reference frames. QP=30.

We first treat the saving of computation for multiple reference frames in the view point of compression. After prediction, residues are transformed, quantized, and then entropy coded. If we can de- tect that the transformed and quantized coefficients are very close to zero in the first reference frame, we can turn off the matching process from the rest frames since more computation will not cause any reduction in prediction errors. This concept is very simple and effective. Moreover, DCT, Q, IQ, and IDCT can also be saved by early detection of all-zero quantized coefficients. The quantization steps of 4x4-residues are described in the following equations:

qp-per = QP/6 (1) q p r e m = QP%6 (2) qp-bits = qp-per

+

15 (3) qp-const = (1

<<

q _ b i t s ) / 6 (4)

+

qp-const)

>>

q-bits ( 5 ) Q M [ i ] l j ] = (ITR[i][j]l x qz~ant~coef[qp.rem][i][3]

where QP is quantization parameter (0-51), Q M is 4x4-quantized

magnitude, T R is 4x4-transformed residues, and qaant-coef is a

3-D 6x4x4-matnx. If inequality (6) holds,

ITRI

<

(2'~b"s - qp.const)/qnant.coef f ( Q P ) (6) the quantized magnitude will be zero, which means the threshold becomes a function of Q P and can be implemented as a look-

up table. Besides, T R is not available befdre transformation, so

we assume residues are Laplacian distributed and find the relation between SAD or SATD and TR. The threshold is directly applied on SAD or SATD. The detailed derivation is omitted in this paper The mode decision result after intra prediction and ME from previous frame is also a very important cue. In Table 2, AIB is

defined as follows. A i s the percentage of a mode after intra pre- diction and ME from previous frame. B is the percentage of A that optimal reference frame and mode remain unchanged after 5

frames are searched. We can see that 7370, 4%. 4%. 17%. and 2% of the MBs are selected as 16x16, 16x8, 8x16, 8x8, and in- tra, respectively, when only previous one frame is searched. After the rest 4 frames are searched, 90% of the 16x16-MBs still re- main as the optimal selection. As for 16x8-MBs, 8x16-MBs, 8x8- MBs, and intra MBs, the percentages that the optimal mode and reference frame do not change are 65%. 65%. 34%. and 7%. re- spectively. This means that 73%x90% + 4 % x 6 5 % + 4 % x 6 5 %

+

17%x34%

+

2 % x 7 % = 76.82% of MBs need only previous one

Container

Foreman 64188 08168 08166 17135 03/06 Hall Monitor 90198 01153 01161 07144 01114 Mobilecalendar 49150 06128 07128 37/20 01/11 Mother and Daughter 89197 03177 03176 04127 01104

Silent 83198 03178 03179 10137 01112 Stefan 47184 06163 05163 38139 04107 Table Tennis 76197 04171 04173 13141 03j08 Weather 87/98 01165 02164 09137 01102 Average 73/90 04165 04165 17134 02107 CIF~ize.sevrchrange [-16.+16]. QP=30. AIB is defined as follows.

A: S of MBs when only prediction from previous frame is allowed.

8 : 90 of A keeping the same made and ref. frame after 5 frames are reached

Fig. 2. Definition of MV compactness of a MB

reference frame, which is quite consistent with the results in Table 1. Furthermore, when a MB is split into smaller blocks for motion compensation using only previous one frame, it means that the motion is discontinuous. In this case. the MB may cross the object

boundaries, where occlusion and uncovering often occur. Thus, there is a greater possibility that the best matched candidates be-

long to the other 4 reference frames. When the intra-mode has bet- ter prediction than inter-modes from previous frame, the MB may belong to uncovered pans or new objects. The best candidates are very likely to be found in other 4 reference frames, too.

Now we try to find the correlation between MV distribution and optimal reference frames. After ME from previous one frame, we have one MV for 16x16-MB. two MVs far 16x8-MB. two MVs for 8x16-MB, and four MVs for 8x8-MB. If the best mode is 16x16, 16x8, or 8x16, the definition of MV compactness for each of the 3 modes is shown in Fig. 2, respectively. Next, we keep on searching the other 4 frames. If the optimal frame or mode of

a MB does not change after ME from 5 frames, we classify these

MBs as type I. Otherwise, we classify them as type 11. The average MV compactness of type I and type I1 for each sequence is shown in Table 3. The MV compactness of MBs with optimal reference frame belonging to the rest 4 frames tends to be larger than that of MBs predicted by previous frame. Therefore, if the MV com- pactness of a MB after ME from previous frame is very small, we should stop searching the rest 4 frames.

The texture is also taken into consideration. The reduction of residues by applying multiple reference frames is more significant

(3)

Table 3. Statistics of Average MV Compactness.

Sequences 16x16 16x8 8x16

Coastguard 08.91 12.6 09.9112.5 07.8109.5 ContaTner 07.4i12.3 07.7109.2 07.iiox.9 Foreman 08.3]16.4 10.1]13.2 10.5113.2 Hall Monitor 08.4]14.5 09.8112.7 10.7112.5 Mobile Calendar 07.1]11.8 07.4111.2 09.5/10.9 Mother and Daughter 06.9]10.5 07.7]11.4 10.0(1 1.6 Silent 07.2(11.9 10.4]14.2 11.6/16.2 Stefan 08.4122.4 11.8116.5 12.7117.3

T h e Unit Of MV cOmpactness i s qutuler pixel.

Ill1 i b defined ss follows.

I optrmal ref. frame and mode do not change afler ME from 5 frames. IT: optimal ref. frame and mode change after ME from 5 frames.

at object boundaries, where occlusion and uncovering often occur. The texture of object boundaries should be more complex than other flat regions. We use SATD after intra prediction to represent the complexity of texture of a MB. In Table 4, intra prediction and ME from previous one frame is first applied for each MB. Then we focus on the MBs having the best made as 16x16, 16x8, and 8x16. Again, we keep on searching the rest 4 frames and classify the MBs into two types. MBs that do not change optimal reference frame and mode are classified as type P, while MBs with different reference frame and mode are denoted as type

Q.

It is clear that the SATD of intra prediction for type P i s smaller than that for type

Q.

Therefore, if a M B is significantly textured, we should search more frames. However, it is also clear from Table 4 that this threshold value should be adaptive with different scenes or sequences.

There are some exceptions in Table 4, such as 16x8 and 8x16 modes for Hall Monitor, 16x8 mode for Silent. These are due to the complicated texture of stationary background that only requires one reference frame. In these cases, if we do not want to lose video quality, the threshold for SATD of intra prediction should be small enough, which will cause waste of computation for highly- textured stationary background. Fortunately, we can use the MV compactness to prevent these situations. Our algorithm will be described in the next section. Let us summarize the analysis as follows. After intra prediction and ME from previous one frame,

If 16x16 mode is selected, the optimal reference frame tend to be unchanged.

more frames tend to be helpful.

.

If MVs of larger blocks are similar to MVs of smaller blocks, it is likely that no occlusion or uncovering occurs in MB, so

one reference frame may he enough.

If inter-modes with smaller blocks are selected, searching

If MVs of larger blocks are more different from MVs of smaller blocks, MB often crosses object boundaries and thus requires more reference frames.

If the texture of a MB is very complicated, it may require

more reference frames.

Table 4. Statistics of Average SATD of Intra Prediction.

Sequences 16x16 16x8 8x16

Coastguard 359915168 493215587 4846/5150 Container 3103]8218 481315242 5960]6010 Foreman 210413094 310313269 256213290 Mobile Calendar 616518371 684318239 629018723 Mother and Daughter 148212472 248812388 225012501 Hall Monitor 234113875 401512149 418211950

CtFrize.rearchrange [-I6.+16],QP=30. PIQ is defined as follows.

P optimal ref. frame and mode do not change aster M E from 5 frames.

Q: optimal ref. frame and mode change after ME from 5 frames.

Fig. 3. Fast algorithm for multiple reference frames ME,

3. PROPOSED ALGORITHM

According to the above analysis, we propose a fast algorithm for multiple reference frame ME to save the computation of full search and to maintain the same video quality. The steps are shown in Fig. 3. Note that TH;,t,, is a function of Q P and is implemented as

a look-up table. T H M V is empirically obtained. TH,,,,, must be adaptive with different scenes. Currently, we use the number of intra MBs in previous coded frame to detect scene change. If more than 10% of the MBs are intra-coded, we will adjust TH;,t,,.

The detailed derivation of THi,,,, is omitted due to the limited

space. As shown in Fig. 4, we connected ten standard sequences together to show the dynamic adjustment of TH,,t,, according lo

the number of intra MBs in previous frame. 4. SIMULATION RESULTS

Figure 5 compares the rate distortion curves of the reference soft-

ware and the proposed algorithm. It is shown that the maximum peak signal to noise ratio (PSNR) drop i s 0.2 dB (Hall Monitor). The average PSNR drop is less than 0.05 dB, so that the two curves far each sequence are hardly distinguishable. Table 5 shows the miss detection rate and the false alarm rate of the proposed algo- rithm. Note that miss detection of optimal reference frames leads to the degradation of PSNR, and the false alarm results in waste of computation. In fact, THi,t,, provides an easy trade-off between speed and quality. Adjusting TH,,,,, cannot decrease the miss detection rate and false alarm rate at the same lime. The higher the TH,,,,,, the more the computation is saved. The lower the

(4)

Fig. 4. Adaptive THi,,,, according to the number of intra MBs. Table 5. Miss Detection and False Alarm Rates.

Sequences Miss Detection False Alarm Coasteuard 1~~~~ 6.21% 41.15%

Container 1.90% 24.96%

Foreman 2.57% 47.42%

Hall Monitor 5.37% 12.83%

Mobile Calendar 5.86% 3 1.60% Mother and Daughter 2.67% 24.57%

Silent 3.73% 19.65% Stefan 5.62% 42.36% Table Tennis 2.41% 25.15% Weather 2.64% 12.30% Average 3.90% 28.20% CIFiiie.searchrange [-16.+16].

THi,t,,, the less the PSNR drop is achieved. The average miss

detection rate is only 3.90%, which means 96.10% of MBs can find the optimal reference frame. The average false alarm rate is 28.20%. which means we should further improve our algorithm to save the 28.20% of computation while keeping the miss detection

rate from rising in the mean time. Given a budget of computation resources, how to select TH,,t,, will also be our future work. Figure 6 shows the number of average searched frames for the reference software and the proposed algorithm. It is shown that 10%-67% of ME operations can be saved.

5. CONCLUSION

We proposed a simple and effective fast algorithm for multiple reference frames motion estimation. We first analyzed the avail- able information after intra prediction and motion estimation from previous one frame. Then we applied several threshold values on the available information to determine if it is necessary to search more frames. Experimental results showed that our method can save 10%-67% of ME computation depending on sequences while keeping the quality nearly the same as full search scheme.

6. REFERENCES

[I]

[21 Joint video Team (JVTJ sofnvare JM4.3, October, 2002.

Committee Draft of Joint video Specification ([TU-T Rec. H.264 and ISO/IEC 14496-10 AVC), luly, 2002.

111 L f I r 7 L C

Fig. 5 . Rate distortion curves of various sequences

Fig. 6. Average searched frames for various sequences

數據

Fig.  1.  Searching steps of  intrdinter prediction  with multiple ref-  erence frames in H.264 reference software and our method
Table 1. Statistics of Reference Frames.
Table  3. Statistics of Average MV Compactness.
Fig. 4. Adaptive THi,,,,  according to the number of intra MBs.

參考文獻

相關文件

In addition, based on the information available, to meet the demand for school places in Central Allocation of POA 2022, the provisional number of students allocated to each class

Moreover, for the merit functions induced by them for the second-order cone complementarity problem (SOCCP), we provide a condition for each stationary point being a solution of

Moreover, for the merit functions induced by them for the second- order cone complementarity problem (SOCCP), we provide a condition for each sta- tionary point to be a solution of

If we want to test the strong connectivity of a digraph, our randomized algorithm for testing digraphs with an H-free k-induced subgraph can help us determine which tester should

Time constrain - separation from the presentation Focus on students’ application and integration of their knowledge. (Set of questions for written report is used to subsidize

The PLCP Header is always transmitted at 1 Mbit/s and contains Logical information used by the PHY Layer to decode the frame. It

In addition, based on the information available, to meet the demand for school places in Central Allocation of POA 2022, the provisional number of students allocated to each class

• We need to make each barrier coincide with a layer of the binomial tree for better convergence.. • The idea is to choose a Δt such