def prepare(self, path, star_finder):
with warnings.catch_warnings():
warnings.simplefilter('ignore', AstropyWarning)
self.calibration.selectImage(path)
self.names, self.vmag, alt, az = self.calibration.catalog.filter(Configuration.min_alt * u.deg, Configuration.max_mag)
altaz = np.array([alt.radian, az.radian]).transpose()
self.pos = np.column_stack(self.calibration.project(altaz))
self.finder = star_finder
self.image = cv2.imread(path)
self.finder.setImage(self.image)
self.altaz = np.array([alt.degree, az.degree]).transpose()
评论列表
文章目录