Skip to content

Instantly share code, notes, and snippets.

View MatteoBattilana's full-sized avatar

Matteo Battilana MatteoBattilana

View GitHub Profile
@MatteoBattilana
MatteoBattilana / main.cu
Created November 12, 2021 12:57
Cuda prixel difference with stream
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
struct rgb_s {
@MatteoBattilana
MatteoBattilana / main.cu
Created November 12, 2021 10:40
Pixel difference CUDA
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
struct rgb_s {
uint8_t red;
@MatteoBattilana
MatteoBattilana / README.md
Last active March 11, 2022 10:09
Robust peak detection algorithm (using z-scores), modified to split up the initialization and the computational part.

This is a Python implementation of the Robust peak detection algorithm.

The initialization and the computational parts are split up, only the filtered_y array has been kept, that has a maximum size equals to lag, so there is no memory increase. (Results are the same of above answers). In order to plot the graph, also the labels array is kept.