Average is beautiful

版本 1.0.1 (8.2 KB) 作者: Hiroshi Iwamura
For details, please refer to the YouTube video. It is suitable for both script and live script.
1.0 次下载
更新时间 2023/5/20

查看许可证

This script was inspired by the following Japanese paper.
The paper states that "taking the average of handwritten hiragana characters makes them more beautiful."
In the paper, they fold the stroke data to create closed curves and expand them to a degree where the difference from the original becomes sufficiently small.
Since it seemed easier to process using the Discrete Cosine Transform (DCT), I chose that method. (DCT is equivalent to taking the DFT of an even extension of the input and is a reversible transformation.)
You can click and drag to draw one stroke, and when you release the click, it will move on to the second stroke. Press any key (e.g., space key, arrow keys) to move to the second try.
Since the determination of each stroke's similarity is based on simple normalization and distance calculation, there may be some mistakes.
This script is not intended for practical use but rather for enjoyment and experimentation.

引用格式

Hiroshi Iwamura (2024). Average is beautiful (https://www.mathworks.com/matlabcentral/fileexchange/129864-average-is-beautiful), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2023a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Added a YouTube link to the Description.

1.0.0