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 |
|-[