|
SOLUTIONS
|
MATHEMATICA 内置符号
MorphologicalTransform
MorphologicalTransform[image, f]
在二值图像 image 中应用函数 f 于每个像素的 3×3 邻域.
MorphologicalTransform[image, rule]
应用一个由规则数 rule 指定的形态变换.
MorphologicalTransform[image, "name"]
使用一个命名的变换
.
MorphologicalTransform[image, transformation, n]
在 image 中应用 n 次 transformation 迭代.
更多信息更多信息
- 在 MorphologicalTransform[image, f] 中,f 是一个映射任意二进制 3×3 矩阵为0和1的函数.
- MorphologicalTransform[image, {f1, f2, ...}, n] 按序应用函数
,迭代 n 次. - MorphologicalTransform 适用于一个二值图像或二值图像列表.
- 支持以下命名函数指标:
- 查找特性:
-
"EndPoints" 查找终点 "SkeletonEndPoints" 查找骨架对象的终点 "SkeletonBranchPoints" 查找骨架对象的节点 - 连接区域:
-
"Bridge" 如果连接2个或2个以上断开邻近区域,则设置中心像素为1 - 填补和清除:
-
"Clean" 翻转没有直接邻域的前景像素 "Flip" 翻转具有同样值的直接邻域的背景和前景像素 "Fill" 设置直接邻域是白色的像素 "Remove" 清除直接邻域是白色的像素,留下周边 "Break" 清除 H 形配置的连接像素 "BoundingBoxes" 填补空白,使该对象填满边界框 "BoundingDiamonds" 填补空白,使该对象填满菱形边界 "DiagonalFill" 填补对角 "CornerFill" 填补角落 "BoundaryStraighten" 清除参差不齐的边界 - 总体和外部总体操作:
-
"Max" 用 3×3 矩阵扩充 "Min" 用 3×3 矩阵侵蚀 "Commonest" 设置邻域最频繁的像素值 "LifeGame" 操作生命的游戏 - 变换操作:
-
"Top" 往上变换一个像素 "Bottom" 往下变换一个像素 "Left" 往左变换一个像素 "Right" 往右变换一个像素 "TopLeft" 往左上变换一个像素 "TopRight" 往右上变换一个像素 "BottomLeft" 往左下变换一个像素 "BottomRight" 往右上变换一个像素 - MorphologicalTransform 接受 Padding 选项. 默认设置为 Padding->0.
版本 8 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »












