Lin Xiaodan, Li Yangfu, Zhu Jianqing, Zeng Huanqiang
IEEE Trans Image Process. 2023;32:709-720. doi: 10.1109/TIP.2022.3231748. Epub 2023 Jan 9.
Eliminating the flickers in digital images captured by rolling shutter cameras is a fundamental and important task in computer vision applications. The flickering effect in a single image stems from the mechanism of asynchronous exposure of rolling shutters employed by cameras equipped with CMOS sensors. In an artificial lighting environment, the light intensity captured at different time intervals varies due to the fluctuation of the power grid, ultimately resulting in the flickering artifact in the image. Up to date, there are few studies related to single image deflickering. Further, it is even more challenging to remove flickers without a priori information, e.g., camera parameters or paired images. To address these challenges, we propose an unsupervised framework termed DeflickerCycleGAN, which is trained on unpaired images for end-to-end single image deflickering. Besides the cycle-consistency loss to maintain the similarity of image contents, we meticulously design another two novel loss functions, i.e., gradient loss and flicker loss, to reduce the risk of edge blurring and color distortion. Moreover, we provide a strategy to determine whether an image contains flickers or not without extra training, which leverages an ensemble methodology based on the output of two previously trained markovian discriminators. Extensive experiments on both synthetic and real datasets show that our proposed DeflickerCycleGAN not only achieves excellent performance on flicker removal in a single image but also shows high accuracy and competitive generalization ability on flicker detection, compared to that of a well-trained classifier based on ResNet50.
消除滚动快门相机拍摄的数字图像中的闪烁是计算机视觉应用中的一项基本且重要的任务。单幅图像中的闪烁效应源于配备CMOS传感器的相机所采用的滚动快门的异步曝光机制。在人工照明环境中,由于电网波动,不同时间间隔捕捉到的光强度会发生变化,最终导致图像中出现闪烁伪影。到目前为止,与单幅图像去闪烁相关的研究很少。此外,在没有先验信息(如相机参数或配对图像)的情况下消除闪烁更具挑战性。为应对这些挑战,我们提出了一个名为DeflickerCycleGAN的无监督框架,该框架在未配对图像上进行训练,以实现端到端的单幅图像去闪烁。除了用于保持图像内容相似性的循环一致性损失外,我们精心设计了另外两个新颖的损失函数,即梯度损失和闪烁损失,以降低边缘模糊和颜色失真的风险。此外,我们提供了一种无需额外训练即可确定图像是否包含闪烁的策略,该策略利用基于两个先前训练的马尔可夫判别器输出的集成方法。在合成数据集和真实数据集上进行的大量实验表明,我们提出的DeflickerCycleGAN不仅在单幅图像的闪烁去除方面取得了优异的性能,而且与基于ResNet50的训练良好的分类器相比,在闪烁检测方面也显示出高精度和有竞争力的泛化能力。