matlab中translate,Translate image

Fill values used for output pixels outside the input image, specified as the

comma-separated pair consisting of 'FillValues' and one of the

following values. imtranslate uses fill values for output pixels

when the corresponding inverse transformed location in the input image is completely

outside the input image boundaries.

The default fill value of numeric and logical images is 0. The

default fill value of categorical images is missing, which

corresponds to the category.

Image TypeTranslation DimensionFormat of Fill Values2-D grayscale or logical image2-DNumeric scalar

2-D color image or 2-D multispectral image2-DNumeric scalar

c-element numeric vector specifying a fill value

for each of the c channels. The number of channels,

c, is 3 for color images.

Series of p 2-D images2-DNumeric scalar

c-by-p numeric matrix. The

number of channels, c, is 1 for grayscale images

and 3 for color images.

N-D image2-DNumeric scalar

Numeric array whose size matches dimensions

3-to-N of the input image A.

For example, if A is 200-by-200-by-10-by-3, then

FillValues can be a 10-by-3 array.

3-D grayscale or logical image3-DNumeric scalar

Categorical image2-D or 3-DValid category in the image, specified as a string scalar or

character vector.

missing, which corresponds to the

category. For more information, see

missing.

Example:255 fills a uint8 image with white

pixels

Example:1 fills a double image with white

pixels

Example:[0 1 0] fills a double color image

with green pixels

Example:[0 1 0; 0 1 1]', for a series of two

double color images, fills the first image with green pixels and

the second image with cyan pixels

Example:"vehicle" fills a categorical image with the "vehicle"

category

Data Types:single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | string | char

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值