dm_crop
Crop a 2D rectangular region from an open DigitalMicrograph image into a new independent image; the source stays unchanged, and the result returns an image ID, calibration, and [y,x] shape.
Instructions
在 DM 内原生裁出二维独立子图,返回新图像 id、标定与 NumPy 轴序 shape[y,x];右下边界不包含。原图保持不变;不支持三维/四维直接裁剪。
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": {
"rect": "<rect>"
},
"name": "dm_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 新图像名称,省略则自动命名 | |
| rect | Yes | 像素矩形 [x0, y0, x1, y1],必须完整位于图内,不舍入或裁夹 | |
| image_id | No | 图像 id(来自 dm_datasets),或 "front" 表示前台窗口 |