Re-Cropping Framework: A Grid Recovery Method for Quantization Step Estimation in Non-Aligned Recompressed Images
Xin Cheng, Hao Wang, Xiangyang Luo, Qingxiao Guan, Bin Ma, Jinwei Wang
Abstract
The manipulation history of Joint Photographic Experts Group (JPEG) compression plays an important role in JPEG image forensics and information hiding. For non-aligned recompressed images, different cropping methods produce non-aligned outputs with varying feature distributions. One such important factor is the shifts of the discrete cosine transform (DCT) grid (i.e., the misalignment parameters) between two compression processes. Although many methods have been proposed to estimate the misalignment parameters, the limited amount of useful information available in small-sized images leads to low accuracy of these methods. To enhance the accuracy of misalignment parameter estimation for small-sized non-aligned images, we propose a novel two-branch network structure that accounts for the unique horizontal and vertical characteristics of non-aligned images. This structure employs convolution to simulate second-order difference (SOD) and incorporates it throughout the training process to optimize the difference parameters dynamically. Based on the insight that cropping operations leave traces in all color channels, we derive the Cg channel through a color space transformation. This approach expands the input dimensionality to four channels (Y, Cb, Cr, and Cg), thereby compensating for the information scarcity in small-sized images. The experimental results show that our method outperforms existing methods on different image sizes, regardless of the known or unknown quality factor (QF) of the first compression. Finally, we propose a re-cropping framework based on the estimated misalignment parameters. The influence of the first cropping is counteracted by a re-cropping operation, which improves the accuracy of existing methods in estimating the first quantization step for non-aligned recompressed images.