This is the attach codes (Xilinx Verilog HDL Project and Matlab) for the paper "Lightweight and Real-Time Infrared Image Processor Based on FPGA". Note that only a part of the whole design is released. The other codes are reserved due to the protection of trade secrets.