The invention discloses a joint optimization method for a joint photographic experts group (
JPEG) quantization table and a truncation position based on
rate distortion, relates to the technical field of
JPEG coding optimization, and solves the technical problems that in a
JPEG compression scheme, improvement of coding efficiency caused by joint optimization by using the quantization table and the truncation position is neglected, and the optimal quantization table and the optimal truncation position are difficult to find. According to the method, joint optimization is carried out on a quantization table and a truncation position of the JPEG by combining a
JPEG compression method from the perspective of
evolutionary computation, a strategy that the truncation position is fixed when the quantization table is optimized, a strategy that the quantization table is unchanged when the truncation position is optimized, an
estimation method for designing fitness evaluation and a method based on rate-
distortion optimization are respectively carried out, and the quantization table and the truncation position are optimized. The optimal quantization table and the truncation position can be effectively found, and the corresponding truncation position is optimized while multiple groups of quantization tables are generated in the optimization process; through joint optimization of the quantization table and the truncation position, image data can be compressed more effectively, redundant information is reduced, and therefore coding efficiency is improved.