Files
OCR/ImageTreatment/Filter/cleanerimage.h
brice.boisson eaa4da6ade OCR project
2022-02-08 19:16:25 +01:00

26 lines
441 B
C

#ifndef _CLEANERIMAGE_H
#define _CLEANERIMAGE_H
#include <SDL2/SDL.h>
#include "../Tools/tools.h"
void grayscale(SDL_Surface *img);
int IsValid(int x, int y, int w, int h);
void ConstrastRenforcement(SDL_Surface *img, int delta);
int Restrict256(int n);
SDL_Surface *Convolute(SDL_Surface *img, float mask[3][3]);
void noiseReduction(SDL_Surface *img);
void blacknwhite(SDL_Surface *img);
void binerize(SDL_Surface *img);
#endif