gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 1ff46ab: Removed redundant measurements in lab


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 1ff46ab: Removed redundant measurements in label_clump_significance_raw
Date: Thu, 17 May 2018 20:32:03 -0400 (EDT)

branch: master
commit 1ff46abc3928cbe5a335fd295577ac3c7f82dfa9
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Removed redundant measurements in label_clump_significance_raw
    
    With the new criteria to find true clumps, measuing the coordinates of the
    clump is now irrelevant. So the extra steps for the coordinate calculation
    have been removed.
---
 lib/label.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/lib/label.c b/lib/label.c
index 0d0528d..4408154 100644
--- a/lib/label.c
+++ b/lib/label.c
@@ -639,9 +639,6 @@ label_clump_significance_sanity(gal_data_t *values, 
gal_data_t *std,
    below.*/
 enum infocols
   {
-    INFO_X,              /* Flux weighted X center col, 0 by C std.       */
-    INFO_Y,              /* Flux weighted Y center col.                   */
-    INFO_SFF,            /* Sum of non-negative pixels (for X,Y).         */
     INFO_STD,            /* Standard deviation.                           */
     INFO_INAREA,         /* Tatal area within clump.                      */
     INFO_RIVAREA,        /* Tatal area within rivers around clump.        */
@@ -681,14 +678,6 @@ label_clump_significance_raw(gal_data_t *values_d, 
gal_data_t *std_d,
 
             /* Get the area and flux. */
             ++row[ INFO_INAREA ];
-            if( values[*a]>0.0f )
-              {
-                gal_dimension_index_to_coord(*a, ndim, dsize, coord);
-                row[   INFO_SFF ] += values[*a];
-                row[   INFO_X   ] += values[*a] * coord[0];
-                if(ndim>1)
-                  row[ INFO_Y   ] += values[*a] * coord[1];
-              }
 
             /* In the loop `INFO_INAREA' is just the pixel counter of this
                clump. The pixels are sorted by flux (decreasing for



reply via email to

[Prev in Thread] Current Thread [Next in Thread]