Chen Wenwu Shao Xinxing He Xiaoyuan
(School of Civil Engineering, Southeast University, Nanjing 211189, China)
Abstract:To solve the real-time transmission problem of displacement fields in digital image correlation, two compression coding algorithms based on a discrete cosine transform(DCT)and discrete wavelet transform(DWT)are proposed.Based on the Joint Photographic Experts Group(JPEG)and JPEG 2000 standards, new non-integer and integer quantizations are proposed in the quantization procedure of compression algorithms.Displacement fields from real experiments were used to evaluate the compression ratio and computational time of the algorithm.The results show that the compression ratios of the DCT-based algorithm are mostly below 10%, which are much less than that of the DWT-based algorithm, and the computational speed is also significantly higher than that of the latter.These findings prove the algorithm’s effectiveness in real-time displacement field wireless transmission.
Key words:digital image correlation; wireless transmission; displacement field; compression encoding
As a noncontact deformation measurement method, digital image correlation(DIC)[1]has been widely used in scientific research and engineering fields.The computational efficiency of DIC is particularly important for the online and long-term monitoring of industrial and medical measurements.With the high-efficiency inverse compositional Gauss-Newton(IC-GN)algorithm and CPU-and GPU-based parallel methods, real-time two-dimensional(2D)DIC[2]and three-dimensional(3D)DIC[3]have been realized.
In real-time measurement applications[4-5], measured deformation fields need to be transmitted in real time for control and monitoring.However, various cables used in traditional wire transmission make wirings in complex measurement sites extremely inconvenient, and the maintenance requires considerable manpower and financial resources.With the rapid development of wireless communication technology, wireless technology is gradually being applied in scientific research, industrial production, and other fields, thus enabling the wireless real-time transmission of measured results.The application of wireless technology can make real-time transmission in complex measurement scenes more flexible and convenient than ever.
Wireless local area networks(WLANs)and 4G are the two most widely used wireless transmission technologies.In various measurement scenarios, the establishment of a WLAN is challenging, especially at complex measurement sites.Compared with WLAN technology, wireless transmission technology based on 4G is not limited by distance and requires no installation of access point equipment to establish a network before measurement.Accordingly, 4G technology is more convenient, suitable, and recommended for the wireless transmission of real-time measured results.
However, the bandwidth of 4G networks is lower than that of WLANs.Owing to the influence of network configuration and terminal equipment, the peak rate of 4G networks for the uplink can reach approximately 20 Mbit/s.Considering the limitation of the bandwidth, the size of transmitted data is a significant factor that affects transmission stability.Recently, the computational speed of real-time DIC based on a heterogeneous parallel computing model can reach up to 1.6 × 106points/s[6].The data type of the calculated displacement field is a double-precision floating point, which occupies 8 bytes per point.Accordingly, there are approximately 200 Mbit/s of U and V displacement field data in DIC for wireless transmission.Considering the transmission stability and future improvement of the computational efficiency of DIC, compression encoding for the wireless transmission of the displacement field is in great demand and deserves further research.
Many studies have been conducted on the data compression of floating points.Isenburg et al.[7]described a lossless method for compressing floating-point coordinates in mesh data using predictive coding.Lü et al.[8]proposed a fast and lossy compression algorithm for point-cloud models based on data-type conversion.In their study, a minimum spanning tree and arithmetic coding were used to encode the point-cloud data of the floating point.Zhang’s research group used principles of digital fringe projection to encode 3D range data within the three-color channels(RGB)of a regular 2D image[9-12].The 2D image can be further compressed using traditional image compression techniques(e.g., PNG and JPEG).This approach achieved high compression ratios and high-quality 3D reconstructions.Based on this approach, researchers have studied methods based on phase encoding[13], space-filling curves[14], and multiwavelength depth encoding[15]for 3D range geometry compression.However, to the best of our knowledge, there is no study on the data compression of displacement fields.
Regardless of lossy and lossless methods, researchers expect to achieve the highest possible accuracy.However, the measurement accuracy of DIC displacement can only reach 0.01 pixels at present, which already meets most of the requirements of the displacement measurement.Even if the compression approach can maintain accurate decimal places of the displacement field, redundant precision is meaningless and leads to a high computational complexity and low compression ratio.Considering the practical attainable accuracy of the displacement measurement and future improvement of precision, 0.001 pixels is defined as the compression target.
JPEG[16]and JPEG 2000[17-19], which are based on a discrete cosine transform(DCT)[20-22]and discrete wavelet transform(DWT)[23-26], respectively, are two classical image compression standards used to achieve good compression ratios.Moreover, High-Efficiency Video Coding(HEVC)[27]and Versatile Video Coding(VVC)[28]are two state-of-the-art video compression standards.HEVC and VVC can be implemented on image coding and achieve excellent compression efficiency at the cost of high computational complexity.Considering the current calculation speed of DIC and transmission bandwidth, it is not necessary to pursue extremely high compression ratios.Compression ratios supporting real-time transmission are acceptable.By comparison, the compression speed needs to be considered.Based on the above considerations, JPEG and JPEG 2000 are well studied, and two improved data compression encoding methods based on the DCT and DWT are proposed.
Some researchers have combined image compression techniques using the DCT and DWT with DIC[29].The key difference between our works is the objects to be compressed.Yang et al.[29]compressed digital images before DIC calculation, whereas our objective is the displacement fields calculated by DIC.Data elements in the displacement field are double-precision floating point types; they are not integers, such as elements in an image.In traditional image compression, low-frequency components are seen more importantly than high-frequency components.Corresponding quantization introduces loss of information.On the contrary, a high compression accuracy(0.001 pixels)of the displacement field is required, and as such, the compression operation in Yang’s work and the quantization modules in JPEG and JPEG 2000 are not gratifying.Particularly, in Yang’s work, only a fixed percentage of coefficients that have the greatest values are saved after the DCT and DWT, which introduces a huge loss of information.Considering these significant properties, improved non-integer and integer quantization are studied.Without confusion, non-integer and integer quantization are named for the data type of data after quantization.
Displacement fields are preprocessed in three steps: valid region extraction, matrix expansion, and level shifting[19].Displacement fields after preprocessing are usually grouped into 8 × 8 blocks and inputted to the DCT individually.
In JPEG, each block is quantized with a specified 64-element quantization table owing to the visual characteristics of the human eye.However, in contrast to general images, the displacement field is not sensed by the eyes but for subsequent operations, and the compression target is to achieve an accuracy of 0.001 pixels for each element.According to this, the quantization step in JPEG 2000[18]is modified to make each element uniformly quantized, which can be given by
(1)
whereΔbis the quantization step;εbis the parameter satisfying 0 ≤εb< 25;μbis the parameter satisfying 0≤μb<211.The improved non-integer quantitative formula, which is specifically designed for floating-point data in the displacement field, is given by
(2)
The inverse non-integer quantitative formula is given by
(3)
The preprocessing of DWT-based displacement field compression is similar to that of the DCT-based method.Notably, the DWT processes the displacement field as a whole without grouping it into blocks.The purpose of matrix expansion is to facilitate the partitioning of code blocks in subsequent bit-plane coding.
Considering the displacement fields of the floating point and the target of lossy compression, Daubechies 9/7 floating-point filter bank with superior lossy compression performance was selected as the DWT filter rather than the Le Gall 5/3 filter bank.Compared with the convolution-based filtering mode, the lifting-based mode provides a remarkable memory reduction and computational complexity of the DWT.As such, the lifting-based mode was applied.
Similar to the quantization step in DCT-based compression,Δbas specified by Eq.(1)was applied to each subband.Subsequently, to facilitate bit-plane coding, the coefficients after the DWT were transformed into integers and quantized by an integer quantization formula for floating points, which is given by
(4)
The operation of integer dequantization was conducted using
(5)
whereγis a reconstruction parameter satisfying 0≤γ<1 chosen by the decoder.
To verify the effectiveness of the improved compression methods based on the DCT and DWT, a displacement field(177×194)in axial compression was inputted into the proposed algorithms as an example.Parameters in Eq.(1)were empirically fixed atμb= 28andεb=1 in both methods[19,30].All algorithms proposed in this work were implemented using MATLAB 2018b and tested on a middle-end desktop computer.
The experimental results based on the DCT are shown in Fig.1.In the sender of the DCT-based method, the displacement field after preprocessing was divided into 8×8 blocks, and each block was inputted to the DCT and quantizer for individual encoding.Subsequently, in the receiver, the encoded bitstream was decoded and dequantized, and the inverse discrete cosine was transformed to reconstruct the recovered displacement field.Fig.1 illustrates the entire process.To avoid confusion, the right color bar is only related to the error map in Fig.1(i).As shown in Fig.1(i), the maximum error between the original and recovered displacement fields is 0.0007 pixels, which achieves the set compression accuracy(0.001 pixels).The corresponding compression ratio is 14.83%.Accordingly, the computational time of the sender and receiver is 0.157 s(relevant computational speed is approximately 2.2 × 105points/s)and 0.142 s(2.4 × 105points/s), respectively.
(a)
In DWT-based compression,γ=0.5 in the dequantizer was chosen to result in midpoint reconstruction.The value can always obtain satisfactory results empirically.The DWT-based experimental results are shown in Fig.2.In the sender, the displacement field was preprocessed, discrete wavelet transformed, quantized, and encoded to the bitstream.Subsequently, the decoded bitstream after dequantization was inputted to the IDWT to recover the displacement field in the receiver.The right color bar is only related to Fig.2(g).The maximum error in Fig.2(g)is 9×10-4pixels, and the corresponding compression ratio is 32.81%.The computational times of the sender and receiver are 7.950 s(4 300 points/s)and 20.389 s(1 700 points/s), respectively.
(a)
To further assess the compression ratio and computational efficiency of the two improved compression methods, the displacement fields of four typical experiments(uniform stretching, three-point bending, four-point bending, and axial compression)were inputted into the proposed algorithms.The speckle patterns of the four experiments are shown in Fig.3.The patterns in Figs.3(a)and(c)are water transfer printing speckles, whereas those in Figs.3(b)and(d)are artificial speckles.Five groups of displacement fields under different loads were selected in each experiment, and the corresponding sizes of the displacement field were 256 × 32(uniform stretching), 59 × 358(three-point bending), 109 × 261(four-point bending), and 177 × 194(axial compression).All fields were calculated using the IC-GN algorithm.The corresponding procedures and parameters are identical to the verification above except forεb.εbis a more effective parameter affecting the quantization step thanμb.Accordingly,μbwas fixed at 28, andεbwas selected(ranging from 0 to 25)for a fixed step of 1.
(a)
Five repeated experiments named N1 to N5 were carried out.Figs.4 and 5 show the maximum errorebetween the original and recovered displacement fields whenμb=28andεb=0, 1, 2(the three values ofεbare the most representative)based on the DCT and DWT, respectively.According to Eq.(1),εbis inversely proportional to the quantization step size.The figures show that a large value ofεbcan achieve a high compression accuracy, and a compression accuracy that is too high inevitably results in a low compression ratio.The selection of an appropriate value ofεbis required.Whenεb=1, only the maximum error of the fifth group of the displacement field in axial compression exceeds the set of 0.001 pixels.The error(0.001 1 pixels)is acceptable, and the parameterεb=1 is recommended for the two improved compression methods.
(a)
(a)
Whenεbis set to 1, the compression ratios based on the DCT and DWT of all 20 groups of displacement fields are shown in Fig.6.The compression ratio of the DCT-based fields in Figs.6(a),(b), and(c)is less than 10%, and the ratio in Fig.6(d)is between 10% and 15%.All ratios of the DWT-based fields are over 15%, and several of those in Fig.6(a)are greater than 40%.The compression ratio of the DCT-based method is much higher than that of the DWT-based fields.
(a)
The corresponding computational times of the two proposed algorithms are shown in Figs.7 and 8.In the DCT-based method, the computational time of the sender ranges from 0.037 to 0.157 s.Accordingly, the time of the receiver is 0.032 to 0.143 s.The relevant DCT-based computational speed of the sender and receiver can reach approximately 2.5×105points/s.However, the DWT-based computational time of the sender ranges from 1.297 to 7.950 s(4 500 to 9 000 points/s), and the time of the receiver is 1.908 to 20.389 s(1 500 to 4 000 points/s), which is greater than 30 times that of the DCT-based method.Compared with the DWT-based method, the DCT-based method shows a much faster computation speed and a remarkable compression performance.
(a)
(a)
1)In this work, with a compression accuracy of 0.001 pixels, two improved compression methods based on the DCT and DWT are proposed to realize the compression encoding of displacement fields for wireless transmission.To verify the effectiveness of the proposed methods, the displacement fields in typical experiments were used to demonstrate the selection of parameterεb, compression ratio, and computational time.The results show that the DCT-based data compression is more effective for the wireless transmission of real-time measured displacement fields.Nonetheless, the DWT-based compression has its own advantages.Functions such as regions of interest, truncation, and progressive transmission of the bit stream can be realized in this framework.This framework is more flexible than the DCT-based method, and more useful functions can be added in the future.
2)The parallel computation can be further conducted in the process of compression encoding for real-time transmission.Significantly, parallel computation has been implemented in numerous practices of data, image, and video compression methods and achieves a considerable improvement in compression effectiveness.Moreover, hardware implementation in compression and wireless transmission should be developed to establish a complete system for remote real-time wireless acquisition of displacement fields.
3)With regard to the improvement of computational speed in real-time DIC in the future, the compression ratio needs to be further reduced for the satisfaction of the transmission stability and bandwidth limit.State-of-the-art codecs, including HEVC and VVC, may be studied to achieve high compression ratios.However, the corresponding computational complexity will increase, which needs more effort on parallel computation and hardware implementation for real-time transmission.
Journal of Southeast University(English Edition)2022年1期