[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 1b4f7d8 2/3: NoiseChisel initializing snind wh
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 1b4f7d8 2/3: NoiseChisel initializing snind when finding true clumps |
Date: |
Wed, 22 Nov 2017 07:00:27 -0500 (EST) |
branch: master
commit 1b4f7d887e7a9ec418feed700aef5f70fb3c87b8
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
NoiseChisel initializing snind when finding true clumps
Until now, when there was no clumps in a tile, we sould only set the
`cltprm->sn' pointer to NULL. We also use the `cltprm->snind' in some
places to see if a check image is necessary. However, when there are no
clumps in a tile, the latter wasn't being initialized. It is now
initialized to NULL along with the former.
---
bin/noisechisel/clumps.c | 2 +-
bin/noisechisel/ui.c | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/noisechisel/clumps.c b/bin/noisechisel/clumps.c
index 954fa02..4767e2e 100644
--- a/bin/noisechisel/clumps.c
+++ b/bin/noisechisel/clumps.c
@@ -832,7 +832,7 @@ clumps_make_sn_table(struct clumps_thread_params *cltprm)
/* If there were no initial clumps, then ignore this function. */
- if(cltprm->numinitclumps==0) { cltprm->sn=NULL; return; }
+ if(cltprm->numinitclumps==0) { cltprm->snind=cltprm->sn=NULL; return; }
/* Allocate the arrays to keep the final S/N table (and possibly S/N
diff --git a/bin/noisechisel/ui.c b/bin/noisechisel/ui.c
index 75c4ee9..1d6054b 100644
--- a/bin/noisechisel/ui.c
+++ b/bin/noisechisel/ui.c
@@ -401,7 +401,6 @@ ui_set_output_names(struct noisechiselparams *p)
if(p->checksegmentation)
p->segmentationname=gal_checkset_automatic_output(&p->cp, basename,
"_seg.fits");
-
}