Search in sources :

Example 16 with FilterSet

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));
    }
}
Also used : FilterSet(uk.ac.sussex.gdsc.smlm.results.filter.FilterSet) Filter(uk.ac.sussex.gdsc.smlm.results.filter.Filter) AndFilter(uk.ac.sussex.gdsc.smlm.results.filter.AndFilter) PrecisionFilter(uk.ac.sussex.gdsc.smlm.results.filter.PrecisionFilter) SnrHysteresisFilter(uk.ac.sussex.gdsc.smlm.results.filter.SnrHysteresisFilter) WidthFilter(uk.ac.sussex.gdsc.smlm.results.filter.WidthFilter) SnrFilter(uk.ac.sussex.gdsc.smlm.results.filter.SnrFilter) OrFilter(uk.ac.sussex.gdsc.smlm.results.filter.OrFilter) PrecisionHysteresisFilter(uk.ac.sussex.gdsc.smlm.results.filter.PrecisionHysteresisFilter) TraceFilter(uk.ac.sussex.gdsc.smlm.results.filter.TraceFilter) TraceFilter(uk.ac.sussex.gdsc.smlm.results.filter.TraceFilter) SnrFilter(uk.ac.sussex.gdsc.smlm.results.filter.SnrFilter) OrFilter(uk.ac.sussex.gdsc.smlm.results.filter.OrFilter) LinkedList(java.util.LinkedList)

Example 17 with FilterSet

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));
}
Also used : FilterSet(uk.ac.sussex.gdsc.smlm.results.filter.FilterSet) Filter(uk.ac.sussex.gdsc.smlm.results.filter.Filter) AndFilter(uk.ac.sussex.gdsc.smlm.results.filter.AndFilter) PrecisionFilter(uk.ac.sussex.gdsc.smlm.results.filter.PrecisionFilter) SnrHysteresisFilter(uk.ac.sussex.gdsc.smlm.results.filter.SnrHysteresisFilter) WidthFilter(uk.ac.sussex.gdsc.smlm.results.filter.WidthFilter) SnrFilter(uk.ac.sussex.gdsc.smlm.results.filter.SnrFilter) OrFilter(uk.ac.sussex.gdsc.smlm.results.filter.OrFilter) PrecisionHysteresisFilter(uk.ac.sussex.gdsc.smlm.results.filter.PrecisionHysteresisFilter) TraceFilter(uk.ac.sussex.gdsc.smlm.results.filter.TraceFilter) PrecisionFilter(uk.ac.sussex.gdsc.smlm.results.filter.PrecisionFilter) LinkedList(java.util.LinkedList)

Aggregations

FilterSet (uk.ac.sussex.gdsc.smlm.results.filter.FilterSet)17 Filter (uk.ac.sussex.gdsc.smlm.results.filter.Filter)9 DirectFilter (uk.ac.sussex.gdsc.smlm.results.filter.DirectFilter)7 IDirectFilter (uk.ac.sussex.gdsc.smlm.results.filter.IDirectFilter)7 ArrayList (java.util.ArrayList)6 LinkedList (java.util.LinkedList)6 AndFilter (uk.ac.sussex.gdsc.smlm.results.filter.AndFilter)5 OrFilter (uk.ac.sussex.gdsc.smlm.results.filter.OrFilter)5 PrecisionFilter (uk.ac.sussex.gdsc.smlm.results.filter.PrecisionFilter)5 PrecisionHysteresisFilter (uk.ac.sussex.gdsc.smlm.results.filter.PrecisionHysteresisFilter)5 SnrFilter (uk.ac.sussex.gdsc.smlm.results.filter.SnrFilter)5 SnrHysteresisFilter (uk.ac.sussex.gdsc.smlm.results.filter.SnrHysteresisFilter)5 TraceFilter (uk.ac.sussex.gdsc.smlm.results.filter.TraceFilter)5 WidthFilter (uk.ac.sussex.gdsc.smlm.results.filter.WidthFilter)5 GenericDialog (ij.gui.GenericDialog)4 NonBlockingGenericDialog (ij.gui.NonBlockingGenericDialog)4 ExtendedGenericDialog (uk.ac.sussex.gdsc.core.ij.gui.ExtendedGenericDialog)4 MaximaSpotFilter (uk.ac.sussex.gdsc.smlm.filters.MaximaSpotFilter)4 MultiPathFilter (uk.ac.sussex.gdsc.smlm.results.filter.MultiPathFilter)4 ConcurrentRuntimeException (org.apache.commons.lang3.concurrent.ConcurrentRuntimeException)3