摘要
本文基于计算机图像处理技术设计了油画生成系统,通过接收并处理源图像,以栅格方式获取采样点,进行随机移动,通过水平向与垂直向边缘算子计算采样点位置梯度,以及窗口边缘强度,据此明确笔划方向与半径,以采样点于源图像的像素值为笔刷像素值,从而根据笔划方向、半径、笔刷像素值实现油画绘制。通过系统测试表明,油画生成系统绘制效果接近人工绘画效果,就笔触与颜色层面,都着重于突显油画绘制特色,高度符合人们对油画绘制的个性化与独特化需求;绘制手法与人工绘制手法相符,笔刷方向更具合理性,颜色进行了适度调整,使得整体更趋向于暖色系。
Based on the computer image processing technology,this paper designs the oil painting generation system.By receiving and processing the source image,the sampling points are obtained in grid mode,and moved randomly.The position gradient of the sampling points and the intensity of the window edge are calculated by the horizontal and vertical edge operators.According to this,the stroke direction and radius are defined.The pixel value of the sampling point from the source image is taken as the brush pixel value According to the stroke direction,radius,brush pixel value to achieve oil painting.The system test shows that the painting effect of the oil painting generation system is close to that of the artificial painting.On the aspect of stroke and color,it focuses on highlighting the characteristics of oil painting,which is highly in line with people's personalized and unique demand for oil painting.The painting technique is consistent with the artificial painting technique,the direction of the brush is more reasonable,and the color is adjusted moderately,which makes the whole more warm color system.
作者
宋爱慧
SONG Ai-hui(Shaanxi Xueqian Normal University,Xi'an 710100 China)
出处
《自动化技术与应用》
2021年第6期142-145,共4页
Techniques of Automation and Applications
关键词
计算机图像处理技术
油画
绘制
算法
computer image processing technology
oil painting
draw
algorithm