The invention relates to the field of
image processing, and discloses a general camera near-
infrared image generation method, which comprises the following steps: S1, adaptive sub-
pixel image registration: acquiring two frames of images, namely an image under an open filter and an image under a
cut-off filter, the two frames of images are subjected to sub-pixel-level alignment based on an
optical flow method or a feature point
pyramid algorithm, in the method, the sub-pixel alignment technology based on the
optical flow method or the feature point
pyramid is adopted, the precision reaches 0.1 pixel level, and
nonlinear deformation caused by turbulence can be eliminated; a compensation coefficient is estimated online in real time through a spectral decoupling and dynamic
gain compensation model, and the problems of
exposure difference and non-uniform
spectral response are solved;
edge enhancement and
noise suppression are performed by combining bilateral filtering or guided filtering with a visible light image as guidance, clear structure information is transferred to a near-
infrared image, and meanwhile, picture
jitter is suppressed by using low sensitivity of a near-
infrared band to turbulence.