Revision 37ebcc92afa8156e87baf04c049b6147f094096b authored by Software Heritage on 22 March 2017, 00:00:00 UTC, committed by Software Heritage on 24 April 2017, 00:00:00 UTC
0 parent
Raw File
utils.h
#ifndef UTILS_H
#define UTILS_H

#include <stdlib.h>

size_t read_video(
  char *name,       //file name
  unsigned char *I, //video to write
  int size          //size of the video
);

size_t write_video(
  char *name,       //file name
  unsigned char *I, //video to write
  int size          //size of the video
);

void add_noise(
  float *u,    //input image
  float *v,    //output noisy image
  float sigma, //Gaussian standard deviation
  int   size   //number of pixels
);

void rgb2gray(
  unsigned char *rgb, //input color image
  float *gray, //output grayscale image
  int size     //number of pixels
);

#endif
back to top