Afm Image Analysis 1.0.0

v1.0.0

Analyze AFM images to compute surface roughness, detect nanoparticles, extract line profiles, generate 3D renderings, and process batches with detailed reports.

0· 82·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for xrayxiaoruiyang-pixel/afm-image-analysis-1-0-0.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Afm Image Analysis 1.0.0" (xrayxiaoruiyang-pixel/afm-image-analysis-1-0-0) from ClawHub.
Skill page: https://clawhub.ai/xrayxiaoruiyang-pixel/afm-image-analysis-1-0-0
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install afm-image-analysis-1-0-0

ClawHub CLI

Package manager switcher

npx clawhub@latest install afm-image-analysis-1-0-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk9778j1wf9vft0sc5zngbe3b3d853yme
82downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

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/.npzNumPy 二进制数组(推荐)
.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.pngAFM高度热图
afm_3d.png3D表面渲染图
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<5nm 很平整,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 — 报告导出

Comments

Loading comments...