[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master fd6f965 2/2: NoiseChisel's --checkdetection in
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master fd6f965 2/2: NoiseChisel's --checkdetection includes true initial detections |
Date: |
Thu, 6 Sep 2018 18:15:50 -0400 (EDT) |
branch: master
commit fd6f9654105727cd20f6cebddd8ed70e14af884f
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>
NoiseChisel's --checkdetection includes true initial detections
Until now, immediately after finding the true pseudo-detections,
NoiseChisel would save the final grown detections. To help in better seeing
the steps, before saving the growth detections, it also saves the initial
detections that contained true pseudo-detections.
---
bin/noisechisel/detection.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/bin/noisechisel/detection.c b/bin/noisechisel/detection.c
index e66c7f3..4497153 100644
--- a/bin/noisechisel/detection.c
+++ b/bin/noisechisel/detection.c
@@ -1153,6 +1153,13 @@ detection(struct noisechiselparams *p)
pseudo-detections. */
if(!p->cp.quiet) gettimeofday(&t1, NULL);
num_true_initial=detection_remove_false_initial(p, workbin);
+ if(p->detectionname)
+ {
+ p->olabel->name="DETECTIONS-INIT-TRUE";
+ gal_fits_img_write(workbin, p->detectionname, NULL,
+ PROGRAM_NAME);
+ p->olabel->name=NULL;
+ }
if(!p->cp.quiet)
{
if( asprintf(&msg, "%zu false initial detections removed.",