|
SOLUTIONS
|
MATHEMATICA 内置符号
ImageForestingComponents
ImageForestingComponents[image]
找到 image 的分割, 返回整数矩阵,其中正整数标记不同的组件.
ImageForestingComponents[image, marker]
试着找到包括由 marker 表示的像素的组件内的分割.
ImageForestingComponents[image, marker, r]
找到连接在像素规模为 r 的组件.
更多信息更多信息
- ImageForestingComponents[image, marker] 产生 image 的基于图形的分割,起始于由 marker 指定的像素.
- 在 ImageForestingComponents[image, marker] 中,marker 可以是一个图像、图形或标准图像坐标系统中,形式为
的点组成的列表,其中 x 从 0 到图像的宽度,而 y 从 0 到图像的高度,坐标
对应于图像的左下角. - marker 的非零元素被作为分割的加权种子.
- ImageForestingComponents 产生一个完整的分割,把每个像素分给一个前景组件.
- ImageForestingComponents 可用于二值、灰度和任意多通道图像.
- ImageForestingComponents[image, marker, r] 产生一个分割,其中每个组件中的像素是在半径 r 内连接在一起,默认半径设置为2.
- ImageForestingComponents[image, marker, {r1, r2}] 指定垂直和水平方向上的不同半径.
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »






