原文:
[函数名称]
二值图像开运算函数OpenOperateProcess(WriteableBitmap src)
[算法说明]
开运算就是先进性一次腐蚀后进行一次膨胀。算法过程如公式2-(27)。
[函数代码]
///<summary>
/// Open operate process.
///</summary>
///<param name="src">The source image(It should be the binary image).</param>
///<returns></returns>
publicstaticWriteableBitmap OpenOperateProcess(WriteableBitmap src)23图像开运算
{
if (src !=null)
{
WriteableBitmap temp = DilationProcess(CorrosionProcess(src));
return temp;
}
else
{
returnnull;
}
}
[图像效果]
posted on 2018-03-13 10:19 阅读( ...) 评论( ...)