This MATLAB designer app is used to measure the diameter and period of periodic holes of photonic crystal structures.
- The image is binarized and filtered small objects (noise)
- If the air hole is circular, the function imfindcircles is used to detect circles. Center and radius are also calculated.
- If the air hole is triangular, the areas of objects are measured. Then, the effective length(l) is calculated based on the area (S), l = sqrt(4*S/sqrt(3)).
- The period is determined by measuring statistics of distances between two closet air holes on horizontal lines.
Note: The number of horizontal lines are calculated automatically using kmeans algorithm.
The reference is USAF 1951 Test Target.
引用格式
Ngo Nguyen (2024). Photonic Crystal - Size Measurement (https://www.mathworks.com/matlabcentral/fileexchange/135752-photonic-crystal-size-measurement), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2023b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!