Sha256: bda981bcb1abba739e621eadd86003de207e2034d4fc5a854d77e07113a4f35c

Contents?: true

Size: 1003 Bytes

Versions: 9

Compression:

Stored size: 1003 Bytes

Contents

/*

    see README for EMAIL-address

 */


/*======================================================================*/
/* OTSU global thresholding routine                                     */
/*   takes a 2D unsigned char array pointer, number of rows, and        */
/*   number of cols in the array. returns the value of the threshold    */
/*======================================================================*/
int
otsu (unsigned char *image, int rows, int cols, int x0, int y0, int dx, int dy, int vvv);


/*======================================================================*/
/* thresholding the image  (set threshold to 128+32=160=0xA0)           */
/*   now we have a fixed thresholdValue good to recognize on gray image */
/*   - so lower bits can used for other things (bad design?)            */
/*======================================================================*/
int
thresholding (unsigned char *image, int rows, int cols, int x0, int y0, int dx, int dy, int thresholdValue);

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
entangledstate-isbn-1.4.1 src/gocr-0.48/src/otsu.h
gocr-ruby-0.0.2 ext/gocr/otsu.h
gocr-ruby-0.0.1 ext/gocr/otsu.h
isbn-2.0.4 src/gocr-0.48/src/otsu.h
isbn-2.0.3 src/gocr-0.48/src/otsu.h
isbn-2.0.2 src/gocr-0.48/src/otsu.h
isbn-2.0.1 src/gocr-0.48/src/otsu.h
isbn-2.0.0 src/gocr-0.48/src/otsu.h
isbn-1.4.1 src/gocr-0.48/src/otsu.h