Hello. I have some images and some GCP for each. I georeferenced some
of them by ENVI.
now i want to do this by program. But my results are different. Why ?
Here is fragment of my source code
;;;;;;;;;;;;;;;;;;
...
pts0=[[geo_points[0,0],geo_points[1,0],0.0,0.0],$
[geo_points[0,1],geo_points[1,1],ns-1,0.0],$
[geo_points[0,2],geo_points[1,2],0.0,nl-1],$
[geo_points[0,3],geo_points[1,3],ns-1,nl-1],$
print,'pts0'
print,pts0
;units=ENVI_TRANSLATE_PROJECTION_UNITS('Degrees')
proj=ENVI_PROJ_CREATE(/GEOGRAPHIC)
pixel_size=[0.00011710,0.00009006]
;proj=ENVI_PROJ_CREATE(/UTM,ZONE=UTM_Zone,DATUM='WGS-84')
ENVI_DOIT,'ENVI_REGISTER_DOIT',$
W_FID=fid,$
W_POS=pos,$
W_DIMS=dims,$
METHOD=5,$
PIXEL_SIZE=pixel_size,$
PTS=pts0,$
PROJ=proj,$
R_FID=r_fid,$
OUT_NAME='D:\pts0',$
OUT_BNAME='my transform'
;;;;;;;;;;;;;;;;;;;;;;;;;
and another question how define pixel size by my program?
Thanks
|