The invention discloses a device and method for compressing pipeline
magnet leakage
signal data and belongs to the technical field of non-
destructive testing. The method comprises the steps that step 1, a pipeline
magnet leakage
signal is collected and converted to an
electric signal, and after filtering amplification is conducted, the
electric signal is further converted to a
digital signal; step 2,
feature parameter extraction is conducted on the
digital signal output from the step 1 through the
wavelet transforming arithmetic based on a self-
adaptation threshold value, a one-dimensional
magnet leakage
signal is converted to a two-dimensional magnet leakage signal, integer
wavelet transformation is conducted on the two-dimensional magnet leakage signal so that a
wavelet coefficient matrix can be obtained, and therefore important information of the magnet leakage signal is concentrated in the low-frequency portion of the wavelet transformation coefficient; step 3,
lossy compression is conducted on the wavelet
coefficient matrix through the improved SPIHT arithmetic. Compared with the prior art, the device and method for compressing the pipeline magnet leakage signal data overcome the shortages that the compression rate when the non-destructive compression is conducted on the long-distance oil pipeline magnet leakage signal by a
detector with limited size is low and the
distortion degree of the
lossy compression is high.