[Python] Centroid of star image

Discussão em 'Python' iniciado por Stack, Dezembro 22, 2024.

  1. Stack

    Stack Membro Participativo

    I'm trying to calculate the centroid of a star image:

    [​IMG]

    I'm fitting a 2D Gaussian with least squares in order to get the centroid of the star with sub-pixel accuracy. And, in fact, I get a float number for the coordinates X and Y of the centroid using https://photutils.readthedocs.io/en...oid_2dg.html#photutils.centroids.centroid_2dg

    Now I want to test this algorithm with different position of the real centroid and compare them with the calculated centroid, but I don't know how to "move" the centroid within sub-pixel accuracy. I only know how to move it in a pixel order.

    Continue reading...

Compartilhe esta Página