Pruning
可用
Removes the outermost branches of thin objects in an image.
Pruning[image]
Pruning[image, n]
Pruning[image, {n}]
Pruning[image, n, t]
ImageData[Pruning[Image[{{0, 0, 1, 0, 0}, {1, 1, 1, 1, 1}}]]]
→ {{0., 0., 1., 0., 0.}, {0., 1., 1., 1., 0.}}ImageData[Pruning[Image[{{0, 0, 1, 0, 0}, {0, 0, 1, 0, 0}, {0, 0, 1, 0, 0}, {1, 1, 1, 1, 1}}], 2]]
→ {{0., 0., 0., 0., 0.}, {0., 0., 0., 0., 0.}, {0., 0., 1., 0., 0.}, {0., 1., 1., 1., 0.}}ImageData[Pruning[Image[{{0, 0, 1, 0, 0}, {0, 0, 1, 0, 0}, {1, 1, 1, 1, 1}}], Infinity]]
→ {{0., 0., 0., 0., 0.}, {0., 0., 1., 0., 0.}, {0., 1., 1., 1., 0.}}ImageData[Pruning[Image[{{1, 0}, {0, 0}}]]]
→ {{1., 0.}, {0., 0.}}ImageData[Pruning[Image[{{0.4, 0.6, 0.8}}]]]
→ {{0., 0.6000000238418579, 0.}}Pruning[Image[{{1, 0}}], -1]
→
Pruning::intnm: Non-negative machine-sized integer expected at position 2 in Pruning[-Image-, -1].
Pruning[-Image-, -1] 全部 6300 个函数 ·
从 MCP 客户端使用