<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sec.dvs;

import ch.unizh.ini.jaer.chip.retina.AETemporalConstastRetina;
import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import net.sf.jaer.chip.AEChip;
import net.sf.jaer.chip.TypedEventExtractor;
import net.sf.jaer.event.PolarityEvent;

/**
 * SEC DVS 640x480 Gen2 AEChip - just for displaying recorded data so far
 * 
 * @author <NAME>, <NAME>, CNE 2017
 */
@DevelopmentStatus(DevelopmentStatus.Status.Experimental)
@Description("SEC DVS 640x480 Gen2 AEChip - just for displaying recorded data")
public class SecDvs640Gen2 extends AETemporalConstastRetina{

    public SecDvs640Gen2() {
        setSizeX(640);
        setSizeY(480);
        setPixelHeightUm(9);
        setPixelWidthUm(9);
        setEventExtractor(new SecDvs640Gen2EventExtractor(this));
        
    }

    private final class SecDvs640Gen2EventExtractor extends TypedEventExtractor<PolarityEvent> {

        public SecDvs640Gen2EventExtractor(AEChip aechip) {
            super(aechip);
            setXshift((byte)1);
            setYshift((byte)10);
            setXmask(0x3ff);
            setYmask(0x7ff);<commit_msg>fix mask and offsets in SecDvs640Gen2<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sec.dvs;

import ch.unizh.ini.jaer.chip.retina.AETemporalConstastRetina;
import net.sf.jaer.Description;
import net.sf.jaer.DevelopmentStatus;
import net.sf.jaer.chip.AEChip;
import net.sf.jaer.chip.TypedEventExtractor;
import net.sf.jaer.event.PolarityEvent;

/**
 * SEC DVS 640x480 Gen2 AEChip - just for displaying recorded data so far
 * 
 * @author <NAME>, <NAME>, CNE 2017
 */
@DevelopmentStatus(DevelopmentStatus.Status.Experimental)
@Description("SEC DVS 640x480 Gen2 AEChip - just for displaying recorded data")
public class SecDvs640Gen2 extends AETemporalConstastRetina{

    public SecDvs640Gen2() {
        setSizeX(640);
        setSizeY(480);
        setPixelHeightUm(9);
        setPixelWidthUm(9);
        setEventExtractor(new SecDvs640Gen2EventExtractor(this));
        
    }

    private final class SecDvs640Gen2EventExtractor extends TypedEventExtractor<PolarityEvent> {

        public SecDvs640Gen2EventExtractor(AEChip aechip) {
            super(aechip);
            setXshift((byte)1);
            setYshift((byte)11);
            setXmask(0x7ff);
            setYmask(0xff800);
{'fraction_non_alphanumeric': 0.09097688292319164, 'fraction_numerical': 0.041759880686055184, 'mean_word_length': 3.5784982935153584, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1667918', 'n_tokens_mistral': 945, 'n_tokens_neox': 847, 'n_words': 196}