简体   繁体   English

RGB图像分量未对齐

[英]RGB image components misaligned

I am using aplypy to create an RGB image of the Eagle nebula from three FITS files, representing the red, green and blue components of the image. 我正在使用aplypy从三个FITS文件创建Eagle星云的RGB图像,分别代表图像的红色,绿色和蓝色分量。 The FITS files are available here , 673nm being the red, 656nm the green and 502nm the blue. FITS文件位于此处 ,红色为673nm,绿色为656nm,蓝色为502nm。

import aplpy
aplpy.make_rgb_cube(['673nmos.fits','656nmos.fits','502nmos.fits'], 'nmod_cube.fits')
aplpy.make_rgb_image('nmod_cube.fits','nmod.png')

f = aplpy.FITSFigure('../data/nmod_cube_2d.fits')
f.show_rgb('../data/output/nmod.png')

The image should look something like this , but comes out looking like the image below. 该图像应该看起来像这样 ,但是看起来像下面的图像。 The blue component is clearly misaligned with the red and green. 蓝色分量显然与红色和绿色未对齐。

鹰状星云未对齐RGB

make_rgb_cube is supposed to realign the three images in to the same projection based on the WCS information in each FITS header, according to the docs , but it doesn't seem to be working in this case. 根据docsmake_rgb_cube应该基于每个FITS标头中的WCS信息将三张图像重新对齐到相同的投影,但是在这种情况下似乎不起作用。

Do I need to employ a star matching library to get the alignment accuracy? 我是否需要使用星形匹配库来获得对准精度?

There is an error in the WCS coordinates in the header of the Blue FITS file. 蓝色FITS文件的标题中的WCS坐标中有错误。 I have contacted spacetelescope.org to alert them. 我已经联系spacetelescope.org来提醒他们。

Another example from the site , of M17, is created correctly using the aplpy script shown in the question. 使用问题中显示的aplpy脚本正确创建了站点 M17的另一个示例。 Blinking through each filter using DS9, as suggested in the comments, confirms the correct alignment. 如注释中所建议,使用DS9闪烁通过每个过滤器,以确认正确的对齐方式。

M17

Use the STScI software TweakReg to align the images and get a good alignment before combining. 在合并之前,请使用STScI软件TweakReg对齐图像并获得良好的对齐。 More information and worked examples can be found on the DrizzlePac website . 可以在DrizzlePac网站上找到更多信息和工作示例。

TweakReg: TweakReg:

Combining images using astrodrizzle requires that the WCS information in the headers of each input image align to within sub-pixel accuracy. 使用星状喷头组合图像要求每个输入图像的标题中的WCS信息在子像素精度内对齐。 The tweakreg task allows the user to align sets of images to each other and/or to and external astrometric reference frame or image. tweakreg任务允许用户将图像集彼此和/或与外部天文参考框架或图像对齐。

It is optimized for use with HST instruments, but can be adapted for other observatories/instruments. 它是为与HST仪器一起使用而优化的,但可适用于其他天文台/仪器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM