Implementation of electronic image stabilization based on TMS320C642

The electronic image stabilization combines the technologies of computer, digital image processing and digital signal processing into a new generation of integrated technology for image sequence stabilization. Real-time and accuracy are two important indicators for measuring electronic image stabilization systems. Therefore, the electronic image stabilization algorithm must reflect its superiority and must meet the real-time and accuracy.

1 Electronic image stabilization algorithm based on gray projection

1.1 The basic principle of electronic image stabilization

Electronic Image Stabiliza TIon (EIS) is a technology that integrates electronic technology, computer, digital signal processing, video image processing, etc. to achieve digital image sequence stabilization. The most basic of the electronic image stabilization techniques is that the image shift compensation technique is a technique of directly detecting the motion vector of the reference image and the compared image from the image plane and then using an algorithm to compensate. The basic principle of image stabilization: (1) Local motion estimation based on various information of image sequences or video. (2) Perform global motion estimation. (3) After exercise estimation, the exercise parameters are obtained, and then comprehensive evaluation is performed. (4) Perform motion compensation based on the results of the comprehensive evaluation, and finally obtain a stable output sequence. It can be seen that obtaining the global motion vector of the image is a prerequisite for electronic image stabilization. The basic process is shown in Figure 1. The global motion vector can be obtained by a gray projection algorithm.

A.jpg

1.2 Gray projection algorithm

The gray-scale projection algorithm (ProjecTIon Algorithm, PA) is to obtain the motion vector between images by using the characteristics of the gray-scale distribution of the image. For images with rich gray details, no obvious features of histogram, and poor contrast, it is difficult to identify the feature quantity. Finding the feature quantity can not only ensure the required image stabilization accuracy, but also difficult to meet the real-time requirements of image stabilization. For this kind of image sequence, the gray motion projection method is used to realize the accurate acquisition of the image motion vector, so as to achieve the purpose of stabilizing the image sequence. The video image sequence is an image sequence in which the gray level of the image changes, and various motion vector estimation algorithms are based on gray scale changes. The projection algorithm can make full use of the grayscale variation of the image to estimate the motion vector of the image more accurately. The advantage of this algorithm is that the gray curve matching speed is fast, thereby improving the image stabilization speed, and is suitable for the gray level change caused by the change of the image illumination. The gray projection algorithm is an ideal algorithm for realizing electronic image stabilization of image sequences with only translational motion or rotational motion.

(1) Grayscale mapping.

Gray-scale mapping is to map the initial two-dimensional image information input into each frame into two independent one-dimensional waveforms. The following is a mapping method for column projection.

B.jpg

In equations (1) to (3), Colk(j) is the gray value of the jth column of the kth frame image; Curk(i,j) is the pixel value at the (i,j) position on the kth frame image. ; NC is the number of columns, and ColProjk(j) is the corrected projection value of the jth column of the kth frame image. The algorithm of row-direction gray-scale projection mapping can be similarly introduced.

(2) Projection filtering.

Projection filtering is to reduce the amplitude of the boundary information, preserve the amplitude of the intermediate region, and use a filter to filter. Since the edge information adversely affects the peak of the cross-correlation in the cross-correlation calculation, the projection value at the boundary is removed. Since the edge information is unique on each image when the amount of image movement is large, the accuracy of the algorithm can be improved by filtering the projection values.

(3) Cross-correlation operation.

The cross-correlation operation is to cross-correlate the row and column projection curves of the current frame image with the row and column projection curves of the reference frame image. The only peak in the correlation value curve obtained after the operation is the displacement value obtained by compensating the motion vector. After the displacement vectors in the horizontal direction and the vertical direction are obtained, the current image is translated to the pixel distance of the corresponding size in the opposite direction of the displacement vector, thereby realizing the stability of the image sequence. The row and column correlation operations are calculated as shown in equation (4).

C.jpg

In equation (4), Colk(j) is the grayscale projection value of the jth column of the kth frame image; NC is the length of the column; m is the search width of the displacement vector on one side with respect to the reference frame. Let wmin be the value of w when w(w) is the smallest, and the displacement vector of the kth frame image in the vertical direction with respect to the reference frame image is as shown in the formula (5).

D.jpg

After the displacement vectors in the horizontal direction and the vertical direction are obtained, the current image can be moved in the opposite direction of the displacement vector to respond to the pixel distance of the size, thereby realizing the stability of the image sequence.

The Guy Wire Fitting is primarily used to erect and anchor poles as well as connect fittings with fittings. It bears mechanical load. Guy wire fittings are generally divided into wedge clamps, NUT wedge clamps, shackles, guy clips, double straps (type PD), yoke plates for double guy wires and type NL strain clamps of compression joint. Generally, malleable cast iron and steel are used as it's materials. All the ferrous metal should be hot-dip galvanized.

Guy Wire Fitting

Guy Wire Fitting

Guy Wire Anchor,Wire Rope Fittings,Stainless Wire Rope,Wire Rope End Fittings,Preformed Guy Wire Fitting

Jiangsu Chuandu Electrical Technology Co.,Ltd. , http://www.cdepf.com

Posted on