<commit_before>package ch.unizh.ini.jaer.projects.rbodo.opticalflow;

import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import net.sf.jaer.chip.AEChip;
import net.sf.jaer.event.ApsDvsEvent;
import net.sf.jaer.event.orientation.ApsDvsMotionOrientationEvent;
import net.sf.jaer.event.orientation.ApsDvsOrientationEvent;
import net.sf.jaer.event.EventPacket;
import net.sf.jaer.event.orientation.OrientationEventInterface;
import net.sf.jaer.event.PolarityEvent;
import net.sf.jaer.event.orientation.DvsMotionOrientationEvent;
import net.sf.jaer.eventprocessing.label.AbstractOrientationFilter;
import net.sf.jaer.eventprocessing.label.SimpleOrientationFilter;

/** 
 * Outputs local motion events derived from time of flight of orientation 
 * events from DVS sensors. 
 * Output cells type has values 0-7, 0 being upward motion, increasing by 
 * 45 deg CCW to 7 being motion up and to right.
 * @author tobi
 */

@Description("Local motion optical flow by time-of-travel of orientation events for APSDVS (DAVIS) sensor")
@DevelopmentStatus(DevelopmentStatus.Status.Experimental)
public class DirectionSelectiveFlow extends AbstractMotionFlow {
    // min 100us to filter noise or multiple spikes.
    private int minDtThreshold = getInt("minDtThreshold",100); <commit_msg>added note about original DirectionSelectiveFilter class<commit_after>package ch.unizh.ini.jaer.projects.rbodo.opticalflow;

import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import net.sf.jaer.chip.AEChip;
import net.sf.jaer.event.ApsDvsEvent;
import net.sf.jaer.event.orientation.ApsDvsMotionOrientationEvent;
import net.sf.jaer.event.orientation.ApsDvsOrientationEvent;
import net.sf.jaer.event.EventPacket;
import net.sf.jaer.event.orientation.OrientationEventInterface;
import net.sf.jaer.event.PolarityEvent;
import net.sf.jaer.event.orientation.DvsMotionOrientationEvent;
import net.sf.jaer.eventprocessing.label.AbstractOrientationFilter;
import net.sf.jaer.eventprocessing.label.SimpleOrientationFilter;

/** 
 * Outputs local motion events derived from time of flight of orientation 
 * events from DVS sensors. 
 * Output cells type has values 0-7, 0 being upward motion, increasing by 
 * 45 deg CCW to 7 being motion up and to right.
 * <p> This class was originally DirectionSelectiveFilter (ca 2007 and later DvsDirectionSelectiveFilter (ca 2014) in the package net.sf.jaer.eventprocessing.label.
 * These original classes have been deleted and replaced by this class. The original source code is available by version control reversion of the project.
 * @author tobi
 */

@Description("Local motion optical flow by time-of-travel of orientation events for APSDVS (DAVIS) sensor")
@DevelopmentStatus(DevelopmentStatus.Status.Experimental)
public class DirectionSelectiveFlow extends AbstractMotionFlow {
    // min 100us to filter noise or multiple spikes.
    private int minDtThreshold = getInt("minDtThreshold",100); 
{'fraction_non_alphanumeric': 0.08279606379368849, 'fraction_numerical': 0.010858500169664066, 'mean_word_length': 5.493392070484582, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4942750', 'n_tokens_mistral': 926, 'n_tokens_neox': 841, 'n_words': 240}