작성일:
 
2010. 6. 11. 15:15
 


pro ngc_edit_new

S=dialog_read_image(image=myimg)
window, xs=900, ys=900
;tv, myimg, true=1
; tv, 변수, true값에 따른 변수 위치, 0 윈도우 값

my_smallimg=rebin(myimg, 3, 300, 300)
;my_red=reform(my_smallimg[0,*,*])
;my_green=reform(my_smallimg[1,*,*])
;my_blue=reform(my_smallimg[2,*,*])

tv, my_smallimg,true=1,0
tv, my_smallimg,true=1,4
tv, my_smallimg,true=1,8
;tv, my_red, 1
;tv, my_green, 2
;tv, my_red, 3
r_img=my_smallimg
g_img=my_smallimg
b_img=my_smallimg
gb_img=my_smallimg
rb_img=my_smallimg
rg_img=my_smallimg

r_img[1:2,*,*]=0
gb_img[0,*,*]=0
g_img[*,*,*]=bytarr(3,300,300)
g_img[1,*,*]=my_smallimg[1,*,*]
rb_img[1,*,*]=0
b_img[0:1,*,*]=0
rg_img[2,*,*]=0

tv,r_img,true=1,1
tv,gb_img,true=1,2
tv,g_img,true=1,3
tv,rb_img,true=1,5
tv,b_img,true=1,6
tv,rg_img,true=1,7

end