\section{Conclusion\label{sec:conclusion}}

In this paper we present the design to reduce the data size of a two dimension thermal data. Nearby pixels in a thermal data mostly have similar value, so we can easily separate an data region into several regions and use its average value to represent it but will not cause too much error. The method we proposed can either choose the data size or error rate of compressed data. By giving every regions different resolutions, we can reduce the file size to $50\%$ less than JPEG when there is $0.5\%$ of distortion, and up to $93\%$ less when there is $2\%$ of distortion.