Example #1
0
        public static ThreeStarAstrometry SolveByThreeStars(
            AstroPlate image,
            Dictionary <PSFFit, IStar> userStarIdentification,
            int tolerance)
        {
            Dictionary <ImagePixel, IStar> transformedDict =
                userStarIdentification.ToDictionary(
                    kvp => new ImagePixel(255, kvp.Key.XCenter, kvp.Key.YCenter),
                    kvp => kvp.Value);

            var solution = new ThreeStarAstrometry(image, transformedDict, tolerance);

            if (solution.Success)
            {
                return(solution);
            }
            else
            {
                return(null);
            }
        }
Example #2
0
        public static ThreeStarAstrometry SolveByThreeStars(
            AstroPlate image,
            Dictionary<PSFFit, IStar> userStarIdentification,
            int tolerance)
        {
            Dictionary<ImagePixel, IStar> transformedDict =
                userStarIdentification.ToDictionary(
                    kvp => new ImagePixel(255, kvp.Key.XCenter, kvp.Key.YCenter),
                    kvp => kvp.Value);

            var solution = new ThreeStarAstrometry(image, transformedDict, tolerance);
            if (solution.Success)
                return solution;
            else
                return null;
        }