binarize.h 653 B

1234567891011121314151617
  1. /*Copyright (C) 2008-2009 Timothy B. Terriberry (tterribe@xiph.org)
  2. You can redistribute this library and/or modify it under the terms of the
  3. GNU Lesser General Public License as published by the Free Software
  4. Foundation; either version 2.1 of the License, or (at your option) any later
  5. version.*/
  6. #if !defined(_qrcode_binarize_H)
  7. # define _qrcode_binarize_H (1)
  8. void qr_image_cross_masking_median_filter(unsigned char *_img,
  9. int _width,int _height);
  10. void qr_wiener_filter(unsigned char *_img,int _width,int _height);
  11. /*Binarizes a grayscale image.*/
  12. unsigned char *qr_binarize(const unsigned char *_img,int _width,int _height);
  13. #endif