Giter Club home page Giter Club logo

astromosaic_helper's Introduction

astromosaic_helper

Watch a directory for SER file, extract 1 image from ser and try to assemblate the mosaic. This program has been written for the Jonckheere Association, in order to facilitate our work on sun and moon observation. The goal is to be sure that the entire object has been covered when doing mosaic (sun / moon or big deep sky object)

Alt text

It uses cv2 to adapt image and detect contours, a bit of mathematics to find circle center and radius (find a circle that pass through the different points of a triangle, polar coordinates to change reference, ...), pysimplegui for the interface, and a custom script to read ser files.

The interface is very simple, simply choose a directory to watch, and if you want to observe the moon or the sun (the image processing will be slightly different as it's a bit more complex to find the contour of the moon due to the presence of many craters and the terminator). The picture displaying the results will be change according to your observation. Just click on "analyse" and put your pictures/video in the correct folder.

Example with image

Alt text Alt text Alt text

Alt text Alt text Alt text

Alt text Alt text Alt text

Result

Alt text

Low contrast sun image

With the Sun, the different algorithm that can be used to stitch the mosaic lack of details to find common points between image. I tried many things with no success.

So, I have chosen a different approch. I use cv2 to find the contour of the sun (an arc for each image), calculate the center and radius of the arc, then interpolate the picture coordinates to find the correct position of the image in a sun picture.

Alt text

That was not so easy, but it works :)

astromosaic_helper's People

Contributors

air01a avatar erwan-damart avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.