8#include "stellarsolverprofile.h"
10#include <stellarsolver.h>
11#include <KLocalizedString>
20 Parameters focusDefault = getFocusOptionsProfileDefault();
21 profileList.
append(focusDefault);
23 Parameters focusDefaultDonut = getFocusOptionsProfileDefaultDonut();
24 profileList.
append(focusDefaultDonut);
27 stars.listName =
"2-AllStars";
28 stars.description =
i18n(
"Profile for the source extraction of all the stars in an image.");
29 stars.maxEllipse = 1.5;
30 stars.convFilterType = SSolver::CONV_GAUSSIAN;
35 Parameters smallStars;
36 smallStars.listName =
"3-SmallSizedStars";
37 smallStars.description =
i18n(
"Profile optimized for source extraction of smaller stars.");
38 smallStars.maxEllipse = 1.5;
39 smallStars.convFilterType = SSolver::CONV_GAUSSIAN;
42 smallStars.maxSize = 5;
43 smallStars.initialKeep = 500;
44 smallStars.saturationLimit = 80;
45 profileList.
append(smallStars);
48 mid.listName =
"4-MidSizedStars";
49 mid.description =
i18n(
"Profile optimized for source extraction of medium sized stars.");
52 mid.convFilterType = SSolver::CONV_GAUSSIAN;
55 mid.removeDimmest = 20;
58 mid.initialKeep = 500;
59 mid.saturationLimit = 80;
63 big.listName =
"5-BigSizedStars";
64 big.description =
i18n(
"Profile optimized for source extraction of larger stars.");
67 big.convFilterType = SSolver::CONV_GAUSSIAN;
71 big.initialKeep = 500;
72 big.removeDimmest = 50;
78SSolver::Parameters getFocusOptionsProfileDefault()
80 Parameters focusDefault;
81 focusDefault.listName = FOCUS_DEFAULT_NAME;
82 focusDefault.description =
i18n(
"Default focus star-extraction.");
83 focusDefault.initialKeep = 250;
84 focusDefault.keepNum = 100;
85 focusDefault.minarea = 20;
86 focusDefault.maxEllipse = 1.5;
87 focusDefault.convFilterType = SSolver::CONV_DEFAULT;
88 focusDefault.deblend_contrast = 1.0;
89 focusDefault.fwhm = 1;
90 focusDefault.r_min = 5;
91 focusDefault.maxSize = 10;
92 focusDefault.removeBrightest = 10;
93 focusDefault.removeDimmest = 20;
94 focusDefault.saturationLimit = 90;
98SSolver::Parameters getFocusOptionsProfileDefaultDonut()
100 Parameters focusDefaultDonut;
101 focusDefaultDonut.listName = FOCUS_DEFAULT_DONUT_NAME;
102 focusDefaultDonut.description =
i18n(
"Profile optimized for source extraction of stars including Donuts.");
103 focusDefaultDonut.initialKeep = 10000;
104 focusDefaultDonut.keepNum = 1000;
105 focusDefaultDonut.minarea = 20;
106 focusDefaultDonut.maxEllipse = 1.5;
107 focusDefaultDonut.convFilterType = SSolver::CONV_DEFAULT;
108 focusDefaultDonut.deblend_contrast = 1.0;
109 focusDefaultDonut.r_min = 5;
110 focusDefaultDonut.maxSize = 0.0;
111 focusDefaultDonut.removeBrightest = 0.0;
112 focusDefaultDonut.removeDimmest = 0.0;
113 focusDefaultDonut.saturationLimit = 90.0;
114 return focusDefaultDonut;
121 Parameters guideDefault;
122 guideDefault.listName =
"1-Guide-Default";
123 guideDefault.description =
i18n(
"Default guider star-extraction.");
124 guideDefault.initialKeep = 250;
125 guideDefault.keepNum = 100;
126 guideDefault.minarea = 10;
127 guideDefault.maxSize = 8;
128 guideDefault.saturationLimit = 98;
129 guideDefault.removeBrightest = 0;
130 guideDefault.removeDimmest = 0;
131 profileList.
append(guideDefault);
133 SSolver::Parameters stars;
134 stars.listName =
"2-AllStars";
135 stars.description =
i18n(
"Profile for the source extraction of all the stars in an image.");
136 stars.maxEllipse = 1.5;
137 stars.convFilterType = SSolver::CONV_GAUSSIAN;
140 profileList.
append(stars);
142 SSolver::Parameters smallStars;
143 smallStars.listName =
"3-SmallSizedStars";
144 smallStars.description =
i18n(
"Profile optimized for source extraction of smaller stars.");
145 smallStars.maxEllipse = 1.5;
146 smallStars.convFilterType = SSolver::CONV_GAUSSIAN;
148 smallStars.r_min = 2;
149 smallStars.maxSize = 5;
150 smallStars.initialKeep = 500;
151 smallStars.saturationLimit = 80;
152 profileList.
append(smallStars);
154 SSolver::Parameters mid;
155 mid.listName =
"4-MidSizedStars";
156 mid.description =
i18n(
"Profile optimized for source extraction of medium sized stars.");
157 mid.maxEllipse = 1.5;
159 mid.convFilterType = SSolver::CONV_GAUSSIAN;
162 mid.removeDimmest = 20;
165 mid.initialKeep = 500;
166 mid.saturationLimit = 80;
169 SSolver::Parameters big;
170 big.listName =
"5-BigSizedStars";
171 big.description =
i18n(
"Profile optimized for source extraction of larger stars.");
172 big.maxEllipse = 1.5;
174 big.convFilterType = SSolver::CONV_GAUSSIAN;
178 big.initialKeep = 500;
179 big.removeDimmest = 50;
189 SSolver::Parameters defaultProfile;
190 defaultProfile.listName =
"1-Default";
191 defaultProfile.description =
i18n(
"Default profile. Generic and not optimized for any specific purpose.");
192 defaultProfile.convFilterType = SSolver::CONV_GAUSSIAN;
193 defaultProfile.fwhm = 1;
194 profileList.
append(defaultProfile);
196 SSolver::Parameters fastSolving;
197 fastSolving.listName =
"2-SingleThreadSolving";
198 fastSolving.description =
i18n(
"Profile intended for Plate Solving telescopic sized images in a single CPU Thread");
199 fastSolving.multiAlgorithm = NOT_MULTI;
200 fastSolving.minwidth = 0.1;
201 fastSolving.maxwidth = 10;
202 fastSolving.keepNum = 50;
203 fastSolving.initialKeep = 500;
204 fastSolving.maxEllipse = 1.5;
205 fastSolving.convFilterType = SSolver::CONV_GAUSSIAN;
206 fastSolving.fwhm = 4;
207 profileList.
append(fastSolving);
209 SSolver::Parameters parLargeSolving;
210 parLargeSolving.listName =
"3-LargeScaleSolving";
211 parLargeSolving.description =
i18n(
"Profile intended for Plate Solving camera lens sized images");
212 parLargeSolving.minwidth = 10;
213 parLargeSolving.maxwidth = 180;
214 parLargeSolving.keepNum = 50;
215 parLargeSolving.initialKeep = 500;
216 parLargeSolving.maxEllipse = 1.5;
217 parLargeSolving.convFilterType = SSolver::CONV_GAUSSIAN;
218 parLargeSolving.fwhm = 4;
219 profileList.
append(parLargeSolving);
221 SSolver::Parameters fastSmallSolving;
222 fastSmallSolving.listName =
"4-SmallScaleSolving";
223 fastSmallSolving.description =
i18n(
"Profile intended for Plate Solving telescopic sized images");
224 fastSmallSolving.minwidth = 0.1;
225 fastSmallSolving.maxwidth = 10;
226 fastSmallSolving.keepNum = 50;
227 fastSmallSolving.initialKeep = 500;
228 fastSmallSolving.maxEllipse = 1.5;
229 fastSmallSolving.convFilterType = SSolver::CONV_GAUSSIAN;
230 fastSmallSolving.fwhm = 4;
231 profileList.
append(fastSmallSolving);
240 Parameters hfrDefault;
241 hfrDefault.listName =
"1-HFR-Default";
242 hfrDefault.description =
i18n(
"Default. Set for typical HFR estimation.");
243 hfrDefault.initialKeep = 250;
244 hfrDefault.keepNum = 100;
246 hfrDefault.minarea = 20;
247 hfrDefault.maxEllipse = 1.5;
248 hfrDefault.convFilterType = SSolver::CONV_GAUSSIAN;
250 hfrDefault.r_min = 5;
251 hfrDefault.maxSize = 10;
253 hfrDefault.removeBrightest = 10;
254 hfrDefault.removeDimmest = 20;
255 hfrDefault.saturationLimit = 90;
257 profileList.
append(hfrDefault);
261 big.listName =
"2-BigSizedStars";
262 big.description =
i18n(
"Set for typical HFR estimation on big stars.");
263 big.initialKeep = 250;
267 big.maxEllipse = 1.5;
268 big.convFilterType = SSolver::CONV_GAUSSIAN;
273 big.removeBrightest = 0;
274 big.removeDimmest = 50;
275 big.saturationLimit = 99;
280 most.listName =
"3-MostStars";
281 most.description =
i18n(
"Set for HFR estimation on most stars.");
282 most.initialKeep = 1000;
287 most.convFilterType = SSolver::CONV_GAUSSIAN;
293 most.removeBrightest = 0;
294 most.removeDimmest = 0;
295 most.saturationLimit = 0;
QString i18n(const char *text, const TYPE &arg...)
Ekos is an advanced Astrophotography tool for Linux.
void append(QList< T > &&value)