TRIZ theory and electronic image stabilization technology and gray projection algorithm are introduced briefly. In the course of the study for gray projection algorithm used in forest fire monitoring system, the offset error estimation problem is encountered. Face to this problem, with provided innovation tools in TRIZ theory, we analyze this problem and resolve it through the pretreatment which re-select gray value. This method allows the algorithm to deal with obvious features of the image better. At the same time, it is showed that some help can be provided by TRIZ theory for computer algorithm design.