Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2021, Vol. 47 ›› Issue (12): 274-277,284. doi: 10.19678/j.issn.1000-3428.0059961

• Graphics and Image Processing • Previous Articles     Next Articles

Image Style Transformation Algorithm Based on Sobel Filter

CHEN Zhipeng, ZHENG Wenxiu, HUANG Qiongdan   

  1. School of Communication and Information Engineering, Xi'an University of Posts and Telecommunications, Xi'an 710121, China
  • Received:2020-11-10 Revised:2020-12-24 Published:2020-12-30

基于Sobel滤波器的图像风格转换算法

陈志鹏, 郑文秀, 黄琼丹   

  1. 西安邮电大学 通信与信息工程学院, 西安 710121
  • 作者简介:陈志鹏(1992-),男,硕士研究生,主研方向为图像处理;郑文秀,副教授、博士;黄琼丹,副教授。
  • 基金资助:
    陕西省重点研发计划项目(2018GY-150)。

Abstract: Iteration-based image style transformation does not consider the structure of content image, resulting in a distortion of lines in the generated image.To solve the problem, an algorithm based on edge detection is proposed to constrain the information during image reorganization.The Sobel filter is used to extract edge information on the same convolutional layer of the content image and the generated image.The loss function selects the mean square error, and the weighted algebraic sum of edge loss, content loss and style loss is taken as the total loss of the neural network.The experimental results show that the proposed algorithm can effectively reduce the distortion of image lines and the image noise, and improves the quality of generated images.

Key words: image style transformation, edge detection, Sobel filter, Convolutional Neural Network(CNN), mean square error

摘要: 基于迭代的图像风格转换在图像重组时未考虑内容图像的结构,导致生成的图像存在线条扭曲。为约束图像重组时的信息,提出一种基于边缘检测的图像风格转换算法。通过Sobel滤波器在内容图像和生成图像相同的卷积层上提取边缘信息,同时以均方误差作为损失函数。在此基础上,将边缘损失、内容损失和风格损失的加权代数和作为神经网络的总损失。实验结果表明,该算法能够有效抑制图像的线条扭曲,减少图像噪声,生成更高质量的图像。

关键词: 图像风格转换, 边缘检测, Sobel滤波器, 卷积神经网络, 均方误差

CLC Number: