dm_profile
Extract an intensity profile along a line between two image pixel centers, with optional width, and return the calibrated distance.
Instructions
沿两点取强度剖面:直接传 x0/y0/x1/y1 原图像素中心坐标(不是 start/end;只有 dm_2d_preview 的 profile 对象用 start/end)。可指定 width,按标定返回距离。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>"
},
"name": "dm_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| width | No | 沿线垂直方向的剖面宽度(像素),默认 1;算法与边界策略随结果返回 | |
| image_id | No | 图像 id(来自 dm_datasets),或 "front" 表示前台窗口 |