/ocr/ocrservice/jni/imageutils/blur.h
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 4#ifndef JAVA_COM_GOOGLE_ANDROID_APPS_UNVEIL_JNI_IMAGEUTILS_BLUR_H_ 5#define JAVA_COM_GOOGLE_ANDROID_APPS_UNVEIL_JNI_IMAGEUTILS_BLUR_H_ 6 7#include "types.h" 8 9#ifdef __cplusplus 10extern "C" { 11#endif 12 13// Detects whether a given luminance matrix is blurred or not. 14// The input matrix size if width * height. 1 is returned when 15// input image is blurred along with blur confidence and extent 16// returned through output value blur and extent. 17int IsBlurred(const uint8* const luminance, const int width, const int height, 18 float* const blur, float* const extent); 19 20#ifdef __cplusplus 21} 22#endif 23 24#endif // JAVA_COM_GOOGLE_ANDROID_APPS_UNVEIL_JNI_IMAGEUTILS_BLUR_H_