OCR/ImageTreatment/Filter/cleanerimage.h

26 lines
441 B
C
Raw Permalink Normal View History

2022-02-08 18:16:25 +00:00
#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