前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >imfilter函数matlab_matlab too many input argument

imfilter函数matlab_matlab too many input argument

作者头像
全栈程序员站长
发布2022-09-30 10:51:23
3690
发布2022-09-30 10:51:23
举报
文章被收录于专栏:全栈程序员必看

大家好,又见面了,我是你们的朋友全栈

认真研读一下MATLAB的help文档吧,解释最权威:

BWFILL Fill background regions in binary image.

BWFILL is a grandfathered function that has been replaced by

IMFILL.

BW2 = BWFILL(BW1,C,R,N) performs a flood-fill operation on

the input binary image BW1, starting from the pixel (R,C). If

R and C are equal-length vectors, the fill is performed in

parallel from the starting locations (R(k),C(k)). N can have

a value of either 4 or 8 (the default), where 4 specifies

4-connected foreground and 8 specifies 8-connected

foreground. The foreground of BW1 comprises the “on” pixels

(i.e., having value of 1).

BW2 = BWFILL(BW1,N) displays the image BW1 on the screen and

lets you select the starting points using the mouse. If you

omit BW1, BWFILL operates on the image in the current

axes. Use normal button clicks to add points. Press

<BACKSPACE> or <DELETE> to remove the previously selected

point. A shift-click, right-click, or double-click selects

a final point and then starts the fill; pressing <RETURN>

finishes the selection without adding a point.

[BW2,IDX] = BWFILL(…) returns the linear indices of all

pixels filled by BWFILL.

BW2 = BWFILL(X,Y,BW1,Xi,Yi,N) uses the vectors X and Y to

establish a nondefault spatial coordinate system for BW1. Xi

and Yi are scalars or equal-length vectors that specify

locations in this coordinate system.

[X,Y,BW2,IDX,Xi,Yi] = BWFILL(…) returns the XData and YData

in X and Y; the output image in BW2; linear indices of all

filled pixels in IDX; and the fill starting points in Xi and

Yi.

BW2 = BWFILL(BW1,’holes’,N) fills the holes in the binary

image BW1. BWFILL automatically determines which pixels are

in object holes, and then changes the value of those pixels

from 0 to 1. N defaults to 8 if you omit the argument.

[BW2,IDX] = BWFILL(BW1,’holes’,N) returns the linear indices

of all pixels filled in by BWFILL.

If BWFILL is used with no output arguments, the resulting

image is displayed in a new figure.

Remarks

——-

BWFILL differs from many other binary image operations in

that it operates on background pixels, rather than foreground

pixels. If the foreground is 8-connected, the background is

4-connected, and vice versa. Note, however, that you specify

the connectedness of the foreground when you call BWFILL.

Class Support

————-

The input image BW1 must be a numeric or logical matrix. The output

image BW2 is logical.

See also bwselect, imfill, roifill,

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

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

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年9月13日 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档