声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3907|回复: 2

[图像处理] 如何在给定区域填充颜色

[复制链接]
发表于 2006-9-7 17:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
如何在给定区域填充颜色
回复
分享到:

使用道具 举报

发表于 2006-9-7 18:50 | 显示全部楼层
FILL Filled 2-D polygons.
    FILL(X,Y,C) fills the 2-D polygon defined by vectors X and Y
    with the color specified by C.  The vertices of the polygon
    are specified by pairs of components of X and Y.  If necessary,
    the polygon is closed by connecting the last vertex to the first.

    If C is a single character string chosen from the list 'r','g','b',
    'c','m','y','w','k', or an RGB row vector triple, [r g b], the
    polygon is filled with the constant specified color.

    If C is a vector the same length as X and Y, its elements are
    scaled by CAXIS and used as indices into the current COLORMAP to
    specify colors at the vertices; the color within the polygon is
    obtained by bilinear interpolation in the vertex colors.

    If X and Y are matrices the same size, one polygon per column
    is drawn. In this case, C is a row vector for "flat" polygon
    colors, and C is a matrix for "interpolated" polygon colors.

    If either of X or Y is a matrix, and the other is a column vector
    with the same number of rows, the column vector argument is
    replicated to produce a matrix of the required size.

    FILL(X1,Y1,C1,X2,Y2,C2,...) is another way of specifying
    multiple filled areas.

    FILL sets the PATCH object FaceColor property to 'flat', 'interp',
    or a colorspec depending upon the value of the C matrix.

    H = FILL(...) returns a column vector of handles to PATCH objects,
    one handle per patch. The X,Y,C triples can be followed by
    parameter/value pairs to specify additional properties of the patches.

    See also PATCH, FILL3, COLORMAP, SHADING.

评分

1

查看全部评分

发表于 2006-9-8 01:16 | 显示全部楼层
用fill或者fill3,具体可以看帮助

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-20 00:46 , Processed in 0.062444 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表