summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-05 10:50:50 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-05 10:50:50 (GMT)
commit8e306483e9baf50482dff753e4a6ccadc87e7037 (patch)
tree14ec3e235d5496d670265199099b6064becb031d
parent625efd3ebeaeba45e7f5a603f0916bcb9da0d7e1 (diff)
Histogram object is not strictly necessary in star finding
-rw-r--r--kstars/fitsviewer/fitsdata.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kstars/fitsviewer/fitsdata.cpp b/kstars/fitsviewer/fitsdata.cpp
index 948ff1d..2be3e44 100644
--- a/kstars/fitsviewer/fitsdata.cpp
+++ b/kstars/fitsviewer/fitsdata.cpp
@@ -72,6 +72,7 @@ FITSData::FITSData(FITSMode fitsMode)
bayer_buffer = NULL;
wcs_coord = NULL;
fptr = NULL;
+ histogram = NULL;
maxHFRStar = NULL;
darkFrame = NULL;
tempFile = false;
@@ -706,7 +707,9 @@ void FITSData::findCentroid(const QRectF &boundary, int initStdDev, int minEdgeW
int pixVal=0;
int minimumEdgeCount = MINIMUM_EDGE_LIMIT;
- double JMIndex = histogram->getJMIndex();
+ double JMIndex = 100;
+ if (histogram)
+ JMIndex = histogram->getJMIndex();
float dispersion_ratio=1.5;
QList<Edge*> edges;
@@ -1440,8 +1443,8 @@ void FITSData::subtract(float *dark_buffer)
int FITSData::findStars(const QRectF &boundary, bool force)
{
- if (histogram == NULL)
- return -1;
+ //if (histogram == NULL)
+ //return -1;
if (starsSearched == false || force)
{