use of uk.ac.sussex.gdsc.smlm.results.filter.FilterSet in project GDSC-SMLM by aherbert.
the class FilterAnalysis method addTraceFilters.
private void addTraceFilters(List<FilterSet> filterSets) {
if (!settings.traceFilter) {
return;
}
for (double d = settings.minDistance; d <= settings.maxDistance; d += settings.incDistance) {
final SnrFilter snr = new SnrFilter(settings.maxSnr);
final List<Filter> filters = new LinkedList<>();
for (int t = settings.minTime; t <= settings.maxTime; t += settings.incTime) {
filters.add(new OrFilter(snr, new TraceFilter(d, t)));
}
filterSets.add(new FilterSet(filters));
}
}
use of uk.ac.sussex.gdsc.smlm.results.filter.FilterSet in project GDSC-SMLM by aherbert.
the class FilterAnalysis method addPrecisionFilters.
private void addPrecisionFilters(List<FilterSet> filterSets) {
if (!settings.precisionFilter) {
return;
}
final List<Filter> filters = new LinkedList<>();
for (int p = settings.minPrecision; p <= settings.maxPrecision; p++) {
filters.add(new PrecisionFilter(p));
}
filterSets.add(new FilterSet(filters));
}
Aggregations