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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 红黑树

    红黑树

    2021年12月31日
    66
  • java linkhashset_java中集合怎么定义

    java linkhashset_java中集合怎么定义LinkedHashSet是Set集合的一个实现,具有set集合不重复的特点,同时具有可预测的迭代顺序,也就是我们插入的顺序。并且linkedHashSet是一个非线程安全的集合。如果有多个线程同时访问当前linkedhashset集合容器,并且有一个线程对当前容器中的元素做了修改,那么必须要在外部实现同步保证数据的冥等性。下面我们new一个新的LinkedHashSet容器看一下具体的源码实现。…

    2022年10月12日
    4
  • matlab 求矩阵秩,求矩阵秩的两种方法及MATLAB的应用

    matlab 求矩阵秩,求矩阵秩的两种方法及MATLAB的应用摘要: 高等代数是一门逻辑思维比较强和理论知识比较深的学科,它具有丰富的数学知识,涉及许多重要的数学思想,其在数学领域的应用很广泛,如行列式、矩阵的相关计算和求解线性方程组的解方面的应用等,求矩阵的秩运算是矩阵研究的一个重要内容,此外数学软件MATLAB在矩阵计算方面也提供了很多方法,本文主要介绍应用MATLAB求矩阵的秩运算的方法。关键词: 矩阵;秩;高等代数;MAT…

    2022年5月30日
    71
  • python海龟作图画爱心_python1|海龟作图法

    python海龟作图画爱心_python1|海龟作图法输入代码:importturtlet=turtle.Pen()forxinrange(100):t.circle(x)t.left(30)画出来是这样的:把circle改成forward:importturtlet=turtle.Pen()forxinrange(100):t.forward(x)t.left(30)就变成这样了:换成红的:importturtlet=…

    2022年6月28日
    38
  • 网页下载文件错误_python安装报错

    网页下载文件错误_python安装报错如图,使用webdriver的过程中出现如下提示,代码正常,下载地址正常,在正常浏览器中也可以成功下载文件但是模拟浏览器却无法成功获取文件;尝试了开发模式启动、禁用或启用js等等,都没有成功,快要放弃chrome准备改选firefox的时候,看到了一个解决方法:此方法只针对一种情况有效:如果你在下载路径前加了r,转义了原始字符串,如下那么,去掉“r”试一下成功了如有问题请留言…

    2022年9月14日
    1
  • 一个Android健身APP源码(类似KEEP、FEEL、轻+、减约、薄荷等)[通俗易懂]

    一个Android健身APP源码(类似KEEP、FEEL、轻+、减约、薄荷等)[通俗易懂]一个Android健身APP源码这是一个Android毕业设计,模仿KEEP、FEEL、轻+、减约、薄荷等制作的健身APP,并且有社交功能。使用AndroidStudio开发,后台为tomcat“肌撕裂者”应用开发工具AndroidStudio安卓最低版本15(IceCream)Android4.0安卓编译版本

    2022年5月12日
    100

发表回复

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

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