lzx1413's blog


  • Home

  • Categories

  • About

  • Archives

  • Tags
lzx1413's blog

Android ndk中进行log的方法

Posted on 2016-03-18 | | Visitors

log是debug中一种重要的方式,如何在ndk中输出C或C++的log呢,下面我们介绍一种比较简单的方法

1
2
3
4
5
6
7
8
9
10
11
12
#incude<android/log.h>
#define LOG "image-process-jni"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG,__VA_ARGS__) // 定义LOGD类型
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG,__VA_ARGS__) // 定义LOGI类型
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG,__VA_ARGS__) // 定义LOGW类型
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG,__VA_ARGS__) // 定义LOGE类型
#define LOGF(...) __android_log_print(ANDROID_LOG_FATAL,LOG,__VA_ARGS__) // 定义LOGF类型
...
LOGI("the message you want to show")
LOGI("the size is %d",size)

这样就可以和java代码中的log一样输出到logcat了

lzx1413's blog

LSD算法概略

Posted on 2016-03-18 | | Visitors

简介

LSD是一种线性时间复杂度的局部线段检测器,可以得出亚像素级的图像结果,并且不需要调节很多参数,对图像适应性较好。算法的源码以及视频分析可以在IPOL得到。

Read more »
12
lzx1413

lzx1413

talk is cheap

12 posts
20 tags
github 知乎
© 2017 lzx1413
Powered by Hexo
Theme - NexT.Mist