imtranslate matlab

本文介绍了Matlab中的imtranslate函数,用于图像平移操作。该函数接受图像、平移向量和插值方法作为参数,支持不同维度图像的变换。通过示例展示了如何使用imtranslate进行三维图像的平移,并提供了填充输出图像外像素的选项。此外,还展示了如何结合其他函数如slice和imshow来显示和比较原始与平移后的图像切片。
摘要由CSDN通过智能技术生成

imtranslate 转换图像
格式:1,B = imtranslate(A,translation)
B = imtranslate(A,translation) 通过变换矢量translation变换图像 A 。
如果A超过两个维度变换参数translate是二元向量,变换适用于2维的图像。一个平面的变换。
2,[B,RB] = imtranslate(A,RA,translation)
[B,RB] = imtranslate(A,RA,translation)用其关联的空间参考图像RA转换空间参考图像A。 平移向量平移在坐标系中。 该函数返回转换后的空间参考图像B及其相关的空间参考对象RB。

3,___ = imtranslate(___,method)
‘linear’ (default) ‘nearest’ 'cubic’使用指定的插值方法转换图像 ‘线性’(默认),“最近” , ‘立方体’

4,___ = imtranslate(___,Name,Value)
可以控制不同的变换name value,name1,value1…
例子:mriVolumeTranslated = imtranslate(mriVolume,[40,30,0],‘OutputView’,‘full’);
‘OutputView’ — 输出限制 ‘same’ (default) | ‘full’
‘FillValues’ — 填充用于输入图像之外的输出像素的值
0 (default) | numeric array
|Fill Value | Description |
|0 --|Fill with black–|
| [0;0;0] | Fill with black |
| 255 | Fill with white |
|-[

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值