Skip to content

Commit

Permalink
update histogram binning, I was wrong before
Browse files Browse the repository at this point in the history
  • Loading branch information
duguyue100 committed Jan 11, 2021
1 parent 4acf0a1 commit 9c69df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyaer/pyflags.i
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ void get_polarity_event_histogram_dvxplorer(caerPolarityEventPacket event_packet
for (i=0; i<(long)packet_len; i++) {
caerPolarityEvent event = caerPolarityEventPacketGetEvent(event_packet, i);

pol_hist_dvxplorer[(int)caerPolarityEventGetY(event)][639-(int)caerPolarityEventGetX(event)][(bool)caerPolarityEventGetPolarity(event)] += 1;
pol_hist_dvxplorer[(int)caerPolarityEventGetY(event)][(int)caerPolarityEventGetX(event)][(bool)caerPolarityEventGetPolarity(event)] += 1;
}
}
%}
Expand All @@ -411,7 +411,7 @@ void get_polarity_event_histogram_dvxplorer_lite(caerPolarityEventPacket event_p
for (i=0; i<(long)packet_len; i++) {
caerPolarityEvent event = caerPolarityEventPacketGetEvent(event_packet, i);

pol_hist_dvxplorer_lite[(int)caerPolarityEventGetY(event)][319-(int)caerPolarityEventGetX(event)][(bool)caerPolarityEventGetPolarity(event)] += 1;
pol_hist_dvxplorer_lite[(int)caerPolarityEventGetY(event)][(int)caerPolarityEventGetX(event)][(bool)caerPolarityEventGetPolarity(event)] += 1;
}
}
%}
Expand Down

0 comments on commit 9c69df5

Please sign in to comment.