Prevent the log of 0 value. 0.97 value is constant
authorRicardo Zanmar <rzanmar@gmail.com>
Mon, 13 Jun 2011 21:01:17 +0000 (23:01 +0200)
committerRicardo Zanmar <rzanmar@gmail.com>
Mon, 13 Jun 2011 21:01:17 +0000 (23:01 +0200)
commit6961fdd9c0befbfc4f7dde45299b0d7187624708
treeffa72c9cac07ac0669c4cfc5038d2878edbfb964
parentb13ab2fa9923c6d8dce84e4533105a2aeae1c838
Prevent the log of 0 value. 0.97 value is constant

In an image with one peak surrounded by 0 in the histogram I might try
to find the log of 0. This is now prevented. Also, the threshold of
0.977 was computed every time. Now its done only once.
loader_fits.c