← 返回 Skills 市场
xrayxiaoruiyang-pixel

Afm Image Analysis 1.0.0

作者 xrayxiaoruiyang-pixel · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
85
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install afm-image-analysis-1-0-0
功能描述
Analyze AFM images to compute surface roughness, detect nanoparticles, extract line profiles, generate 3D renderings, and process batches with detailed reports.
使用说明 (SKILL.md)

afm-image-analysis-1.0.0

AFM图像分析工具 — 表面粗糙度、纳米颗粒统计、线轮廓、3D可视化、批量处理

快速使用

# 单文件
python ~/.openclaw/skills/afm-image-analysis-1.0.0/scripts/analyze_afm.py sample.afm -o ./output

# 批量目录
python ~/.openclaw/skills/afm-image-analysis-1.0.0/scripts/analyze_afm.py ./afm_data/ -o ./output -r

# 带线轮廓(px坐标)
python analyze_afm.py sample.npy --profile 100,50,400,250 -o ./out

输入格式

格式 说明
.npy/.npz NumPy 二进制数组(推荐)
.txt/.csv/.asc/.dat 文本矩阵,空白分隔或CSV
.jpg/.png/.tif 图像文件(灰度→高度映射)

⚠️ 图像模式默认 1 gray level = 1 nm,用 --scale 调整。

功能模块

1. 表面粗糙度(自动平面校正)

Ra(nm)    — 算术平均粗糙度(最常用)
Rq(nm)    — 均方根粗糙度
Rpv(nm)   — 峰谷总值 (max−min)
Rsk       — 偏度(对称性)
Rku       — 峰度(分布锐度)
Ra_g(nm)  — 高斯滤波粗糙度

步骤:①一阶平面拟合去倾斜 ②计算粗糙度参数

2. 纳米颗粒/突起检测

  • Otsu自动阈值分割
  • OpenCV连通域分析
  • 等效圆直径 (Ø_eq = 2√(area/π))
  • 高度统计(mean/max/min)
  • 批量CSV导出

3. 线轮廓截面

指定两个像素坐标,提取沿线的 높이变化曲线:

--profile x1,y1,x2,y2

4. 3D表面渲染

LightSource shading,颜色映射 terrain,垂直夸张 2×。

5. 批量处理

# 递归扫描
python analyze_afm.py ./afm_data/ -r -o ./afm_results/

输出文件

每个输入文件生成独立子目录({文件名}/):

文件 内容
afm_heatmap.png AFM高度热图
afm_3d.png 3D表面渲染图
roughness.png 粗糙度参数柱状图
roughness.csv 粗糙度数据表
particles_annotated.png 颗粒标注图
particle_hist.png 颗粒直径/高度分布直方图
particles.csv 颗粒详细数据
line_profile.png 线轮廓截面图
report.json 完整JSON报告

根目录额外输出:summary.csv(多文件汇总表)

常用参数

参数 说明 默认值
--threshold 颗粒检测阈值(%) 20
--min-size 最小颗粒面积(px) 10
--scale 灰度→nm比例 auto/1.0
--no-3d 跳过3D渲染 False
-r 递归扫描子目录 False

典型分析场景

催化剂薄膜粗糙度评估:

python analyze_afm.py catalyst_film.npy -o ./results
# → 查看 Ra/Rq 判断表面平整度(Ra\x3C5nm 很平整,Ra>30nm 较粗糙)

纳米颗粒尺寸统计:

python analyze_afm.py nano_particles.npy --threshold 25 --min-size 15 -o ./np_stats

批量对比不同样品:

python analyze_afm.py ./sample_series/ -r -o ./compare/
# → 对比 summary.csv 中 Ra/Rq 值

技术栈

  • numpy — 数据处理
  • opencv-python — 连通域/阈值分割
  • scipy — 平面拟合/统计分析
  • matplotlib — 全套绘图
  • numpy/csv — 报告导出
安全使用建议
This skill appears coherent for local AFM image analysis: it runs a Python script that reads local files and writes analysis/plots. Before installing or running: (1) inspect the remainder of scripts/analyze_afm.py (the provided preview was truncated) to confirm there are no network calls or hidden behaviors; (2) ensure the required Python packages (numpy, scipy, opencv-python, matplotlib) are installed in a contained environment (venv/conda) to avoid dependency conflicts; (3) run the tool on non-sensitive sample data first to verify outputs; and (4) run it with least privilege (no elevated/system directories) so outputs are isolated. If you want, provide the rest of the script and I can re-check for any network or exfiltration code and raise the confidence level.
功能分析
Type: OpenClaw Skill Name: afm-image-analysis-1-0-0 Version: 1.0.0 The skill bundle provides a legitimate tool for Atomic Force Microscopy (AFM) image analysis, including surface roughness calculation, nanoparticle statistics, and 3D visualization. The Python script `analyze_afm.py` uses standard scientific libraries (NumPy, SciPy, OpenCV, Matplotlib) to process data and generate reports, with no evidence of malicious intent, data exfiltration, or unauthorized system access.
能力评估
Purpose & Capability
Name/description (AFM image analysis) match the included SKILL.md and the Python script: functions compute roughness, detect particles, extract profiles, produce plots and reports. Required tools (numpy, scipy, opencv, matplotlib) are exactly what such a tool needs — nothing extraneous like cloud credentials or unrelated binaries is requested.
Instruction Scope
SKILL.md instructs the agent/user to run the included Python script on local files or directories and describes expected input/output files. The instructions do not ask the agent to read unrelated system files, secrets, or send data to remote endpoints. They are narrowly scoped to file processing and plotting.
Install Mechanism
No install spec is provided (instruction-only skill) and the script expects standard Python packages. There are no downloads, archives, or third-party installers embedded in the skill metadata.
Credentials
The skill declares no environment variables, credentials, or config paths. The runtime code also contains no obvious access to environment secrets or external service tokens in the reviewed portion.
Persistence & Privilege
Flags show no always:true and the skill is user-invocable only. It does not request persistent system-wide privileges or modify other skills' configuration in the reviewed content.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install afm-image-analysis-1-0-0
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /afm-image-analysis-1-0-0 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of AFM image analysis tool - Analyze surface roughness with automated plane correction and multiple roughness parameters (Ra, Rq, Rpv, Rsk, Rku, Ra_g) - Detect and quantify nanoparticles or protrusions, outputting statistics and annotated images - Extract line profiles between specified coordinates for cross-sectional analysis - 3D surface rendering with shading and vertical exaggeration - Batch process support for multiple files or directories, detailed per-file outputs and summary CSV - Supports various AFM data formats: NumPy arrays, text/csv, and grayscale images
元数据
Slug afm-image-analysis-1-0-0
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Afm Image Analysis 1.0.0 是什么?

Analyze AFM images to compute surface roughness, detect nanoparticles, extract line profiles, generate 3D renderings, and process batches with detailed reports. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。

如何安装 Afm Image Analysis 1.0.0?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install afm-image-analysis-1-0-0」即可一键安装,无需额外配置。

Afm Image Analysis 1.0.0 是免费的吗?

是的,Afm Image Analysis 1.0.0 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Afm Image Analysis 1.0.0 支持哪些平台?

Afm Image Analysis 1.0.0 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Afm Image Analysis 1.0.0?

由 xrayxiaoruiyang-pixel(@xrayxiaoruiyang-pixel)开发并维护,当前版本 v1.0.0。

💬 留言讨论