Fill my holes_imfilter函数matlab

Fill my holes_imfilter函数matlabSyntaxBW2=imfill(BW)[BW2,locations]=imfill(BW)BW2=imfill(BW,locations)BW2=imfill(BW,’holes’)I2=imfill(I)BW2=imfill(BW,locations,conn)DescriptionBW2=imfill(BW)displaysthebinaryimageB…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

Syntax

BW2 = imfill(BW)

[BW2,locations] = imfill(BW)

BW2 = imfill(BW,locations)

BW2 = imfill(BW,’holes’)

I2 = imfill(I)

BW2 = imfill(BW,locations,conn)

Description

BW2 = imfill(BW) displays the binary image BW onthe screen and lets you define the region to fill by selecting pointsinteractively by using the mouse. To use this interactive syntax, BW mustbe a 2-D image. Press Backspace or Delete toremove the previously selected point. A shift-click, right-click,or double-click selects a final point and starts the fill operation.Pressing Return finishes the selection withoutadding a point.

[BW2,locations] = imfill(BW) returns thelocations of points selected interactively in locations. locations isa vector of linear indices into the input image. To use this interactivesyntax, BW must be a 2-D image.

BW2 = imfill(BW,locations) performs a flood-filloperation on background pixels of the binary image BW,starting from the points specified in locations.If locations is a P-by-1 vector, it contains thelinear indices of the starting locations. If locations isa P-by-ndims(BW) matrix, eachrow contains the array indices of one of the starting locations.

BW2 = imfill(BW,’holes’) fills holes inthe binary image BW. A hole is a set of backgroundpixels that cannot be reached by filling in the background from theedge of the image.

I2 = imfill(I) fills holes in the grayscaleimage I. In this syntax, a hole is defined as anarea of dark pixels surrounded by lighter pixels.

BW2 = imfill(BW,locations,conn) fills thearea defined by locations, where conn specifiesthe connectivity. conn can have any of the followingscalar values.

Value

Meaning

Two-dimensionalconnectivities

4

4-connected neighborhood

8

8-connected neighborhood

Three-dimensionalconnectivities

6

6-connected neighborhood

18

18-connected neighborhood

26

26-connected neighborhood

Connectivity can be defined in a more general way for any dimensionby using for conn a 3-by-3-by- … -by-3 matrixof 0’s and 1’s. The 1-valuedelements define neighborhood locations relative to the center elementof conn. Note that conn mustbe symmetric about its center element.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/194266.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 基于Auto.js的萌猫跳辅助

    基于Auto.js的萌猫跳辅助许久不见,甚是想念被学长唤醒的博客魂ing…这次是一个失去时效性的小脚本,但是其中包括一些东西或许对你们可以有帮助撒一些要点因为Auto.js并没有直接的对于触控位置的监听,所以需要对安卓API进行调用2.涉及对于画布的使用importClass(android.graphics.PorterDuffXfermode);importClass(android.graphics.PorterDuff);constBG_COLOR=colors.parseColor(“#2d

    2022年6月6日
    41
  • 3D电影的原理_3D电影制作

    3D电影的原理_3D电影制作在搞清楚3D立体原理之前我们先了解什么是“真3D”:我们肉眼所看到的景像是一种具有层次、深度的立体影像。一般我们所谓3D游戏或电影,实际上并非真正的3D;因为屏幕先天即是2D

    2022年8月5日
    4
  • pip怎么卸载安装包_python pip升级

    pip怎么卸载安装包_python pip升级pip卸载安装的所有python包

    2022年10月19日
    2
  • 矩阵的秩及其求法

    矩阵的秩及其求法矩阵的秩及其求法矩阵秩的概念k阶子式矩阵的秩矩阵秩的求法1、子式判别法(定义)2、用初等行变换求矩阵的秩满秩矩阵矩阵秩的概念k阶子式定义1:设A=(aij)m×nA=(a_{ij})_{m\timesn}A=(aij​)m×n​在AAA中任取kkk行kkk列交叉处元素按原相对位置组成的kkk(1≤k≤min{m.n})(1\leqk\leqmin\lbracem.n\rbrace)(1≤k≤min{m.n})阶行列式,称为AAA的一个kkk阶子式。m×nm\timesnm×n的矩阵A

    2022年5月30日
    71
  • golang激活码2021(JetBrains全家桶)

    (golang激活码2021)这是一篇idea技术相关文章,由全栈君为大家提供,主要知识点是关于2021JetBrains全家桶永久激活码的内容https://javaforall.net/100143.htmlIntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,上面是详细链接哦~0UY7RF7AC5-eyJsaWNlb…

    2022年3月28日
    159
  • 欧几里得距离、曼哈顿距离和切比雪夫距离

    欧几里得距离、曼哈顿距离和切比雪夫距离闵可夫斯基距离 1 p 为 2 时是欧几里得距离 两个点之间的距离 也即通常情况下 我们所计算的距离 n 维空间中的欧式距离的计算公式为 2 p 为 1 时是 nbsp 曼哈顿距离 两个点在标准坐标系上的绝对轴距总和 在 2 维空间中的计算公式为 3 切比雪夫距离 各坐标数值差的最大值 在 2 维空间中的计算公式为

    2025年11月16日
    3

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号