/ocr/ocrservice/jni/imageutils/blur.h

http://eyes-free.googlecode.com/ · C Header · 24 lines · 12 code · 6 blank · 6 comment · 0 complexity · f14b7b2f883e47b52b3986c4339cafe7 MD5 · raw file

  1. // Copyright 2010 Google Inc. All Rights Reserved.
  2. // Author: xiaotao@google.com (Xiaotao Duan)
  3. #ifndef JAVA_COM_GOOGLE_ANDROID_APPS_UNVEIL_JNI_IMAGEUTILS_BLUR_H_
  4. #define JAVA_COM_GOOGLE_ANDROID_APPS_UNVEIL_JNI_IMAGEUTILS_BLUR_H_
  5. #include "types.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. // Detects whether a given luminance matrix is blurred or not.
  10. // The input matrix size if width * height. 1 is returned when
  11. // input image is blurred along with blur confidence and extent
  12. // returned through output value blur and extent.
  13. int IsBlurred(const uint8* const luminance, const int width, const int height,
  14. float* const blur, float* const extent);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif // JAVA_COM_GOOGLE_ANDROID_APPS_UNVEIL_JNI_IMAGEUTILS_BLUR_H_