bound2im

来源:互联网 发布:出版社要出版专业知乎 编辑:程序博客网 时间:2024/05/16 17:22
bound2im
 bound2im Converts a boundary to an image.    B = bound2im(b) converts b, an np-by-2 or 2-by-np array    representing the integer coordinates of a boundary, into a binary    image with 1s in the locations defined by the coordinates in b    and 0s elsewhere.      B = bound2im(b, M, N) places the boundary approximately centered    in an M-by-N image. If any part of the boundary is outside the    M-by-N rectangle, an error is issued.       B = bound2im(b, M, N, X0, Y0) places the boundary in an image of    size M-by-N, with the topmost boundary point located at X0 and    the leftmost point located at Y0. If the shifted boundary is    outside the M-by-N rectangle, an error is issued. XO and X0 must    be positive integers.