📄 image_ar.pro
字号:
; $Id: image_ar.pro,v 1.2 2002/03/14 11:49:12 riccardi Exp $
function image_ar,yxar,input
;+
;resample an image sampled with a different step in y and x axis to the same step.
;usage : resampled_image=image_ar(aspect_ratio,image)
; aspect_ratio is the image aspect ratio
;-
sz=size(input)
if sz[0] ne 2 then begin
MESSAGE,"input must be 2-D"
endif
nx=sz[1]
ny=sz[2]
y=findgen(fix(ny*yxar))/yxar
return, interpolate(input,findgen(nx),y,/grid)
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -