|
SOLUTIONS
|
MATHEMATICA 内置符号
ImagePartition[image, s]
将一个图像划分为由 s
s 像素的子图像组成的数组.
ImagePartition[image, {w, h}]
将一个图像划分为子图像数组,子图像的宽度为 w 像素,高度为 h 像素.
ImagePartition[image, {w, h}, {dw, dh}]
使用像素位移 dw 和 dh.
更多信息更多信息
- ImagePartition 返回一个 Image 对象构成的数组.
- ImagePartition 默认情况下选出非重叠的子图像.
- ImagePartition[image, s] 尽可能产生多个 s
s 子图像,删除周边的不完全的子图像. - ImagePartition[image, {s}] 则包含边界上的不完全子图像.
- 在 ImagePartition[image, {wspec, hspec}, ...] 中,wspec 和 hspec 可以使用下列形式:
-
s 仅允许大小 s {s} 允许至多为 s 的任意尺寸 Scaled[a] 允许幅度为 a 的尺寸 {Scaled[a]} 允许当前大小的 a 倍的任意尺寸 {smin,smax} 允许从
到
的任意尺寸 - ImagePartition 支持选项 Padding.
- 默认设置是 Padding->None,它删除周边上大小和
不一致的子图像. - 也支持 Padding 的所有其它标准设置.
- ImagePartition 也可用于 Image3D 对象.
版本 7 的新功能 | 版本 9 修改功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




