# Glare **Repository Path**: yongsu1989/glare ## Basic Information - **Project Name**: Glare - **Description**: 光绘(Glare)一款自由开源的数字散斑图像生成和评价软件。该软件具有散斑图生成、变形图生成、散斑质量评价和散斑图案推荐等功能:可以生成椭圆、多边形和高斯散斑;可以渲染平移、拉伸/压缩、旋转、正弦、高斯和剪切带等变形模式的变形图;可以计算散斑占空比、散斑尺寸、系统误差和随机误差等关键散斑质量评价参数;可以根据工况生成矢量格式的推荐散斑图案。该软件不仅可用于数字图像相关的学术研究和工程应用,也可服务于实验力学的教学工作,具有广阔的应用前景。 - **Primary Language**: C++ - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 46 - **Forks**: 19 - **Created**: 2020-09-19 - **Last Updated**: 2026-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Glare #### 介绍 光绘(Glare)一款自由开源的数字散斑图像生成和评价软件。该软件具有散斑图生成、变形图生成、散斑质量评价和散斑图案推荐等功能:可以生成椭圆、多边形和高斯散斑;可以渲染平移、拉伸/压缩、旋转、正弦、高斯和剪切带等变形模式的变形图;可以计算散斑占空比、散斑尺寸、系统误差和随机误差等关键散斑质量评价参数;可以根据工况生成矢量格式的推荐散斑图案。该软件不仅可用于数字图像相关的学术研究和工程应用,也可服务于实验力学的教学工作,具有广阔的应用前景。 本软件采用C++编写,在Windows 10环境下使用Visual Studio 2019 Community版本开发,使用了Qt 5.14.2, OpenCV 4.5.1, Armadillo 10.2.2, QCustomPlot 2.0.1等类库,遵循GPL 3.0开源标准。软件介绍可以参见我发表在《实验力学》的论文《光绘:自由开源的数字散斑图像生成和评价软件》。此为软件的源代码,如果想下载可以直接运行的版本,可以在本页面右端点击“发行版” 如果遇到什么问题或者Bug,可以直接留言或者给我发邮件(suyong@ustc.edu.cn) #### Introduction Glare is a free and open-source software developed for generation and assessment of digital image correlation. It has functions including generating speckle patterns, rendering deformed images, assessing pattern quality, and presenting pattern recommendations: Glare can generate ellipse, polygon, and Gaussian speckle patterns; can render deformed images with underlying deformation fields of translation, stretch/compression, rotation, sinusoidal deformation, Gaussian deformation, and Portevin-Le Chatelier band deformation; can calculate key pattern quality assessment parameters such as speckle coverage, speckle size, systematic error, and random error; can produce optimized speckle pattern in form of vector image. In general, the software can be used not only for scientific research and engineering applications in digital image correlation community but also for education of experimental mechanics, and therefore has broad prospects. This is the source code repository of Glare. The software is written in C++ together with Qt 5.14.2, OpenCV 4.5.1, Armadillo 10.2.2, and QCustomPlot 2.0.1. This code follows GPL 3.0 license. More details can be referred to my paper [*Glare*: A free and open-source software for generation and assessment of digital speckle pattern](https://www.sciencedirect.com/science/article/pii/S0143816621002360). If you want compiled version (that can run directly) , you can go to the right side of this page and click the "release version". Unzip the file, remove the translation file "xiangen_zh.qm", and double click "Glare.exe".