solerjuan / astroHOG

Set of tools for the analysis correlations using the Histograms of Oriented Gradients
24 stars 12 forks source link

Pearson correlation ngood=2 crash #3

Open chiaramininni opened 2 years ago

chiaramininni commented 2 years ago

ngood==2 gives a crash for the calculation of pearson correlation coefficient, because ngood=2 gives only one pixel to be correlated

solerjuan commented 2 years ago

It is fixed in the most recent push by adding a warning when the intersection between the masks is void.