<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mleage的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/mleage</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mleage]]></copyright><item><title><![CDATA[SDM（superviseddescentmethod）人脸特征点训练]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/105420781</link><guid>https://blog.youkuaiyun.com/mleage/article/details/105420781</guid><author>mleage</author><pubDate>Thu, 09 Apr 2020 21:39:51 +0800</pubDate><description><![CDATA[SDM方法是13年在文章《Supervised Descent Method and its Applications to Face Alignment》提出的，github上一个大牛根据文章《Random Cascaded-Regression Copse for Robust Facial Landmark Detection》的方法利用SDM的思想实现了人脸特征点检测的任务。

...]]></description><category></category></item><item><title><![CDATA[Sobel 算子是像素图像边缘检测算法]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/105418829</link><guid>https://blog.youkuaiyun.com/mleage/article/details/105418829</guid><author>mleage</author><pubDate>Thu, 09 Apr 2020 20:07:57 +0800</pubDate><description><![CDATA[Sobel 算子是像素图像边缘检测中最重要的算子之一，该算子包含两组3x3的矩阵，分别为横向及纵向，将之与图像作平面卷积，即可分别得出横向及纵向的亮度差分近似值。如下图，Gx和Gy分别是在横向及纵向的灰度偏导的近似值。（注：对于一个彩色图要先把它转换为灰度图）

...]]></description><category></category></item><item><title><![CDATA[P-tile阈值分割算法]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/105414672</link><guid>https://blog.youkuaiyun.com/mleage/article/details/105414672</guid><author>mleage</author><pubDate>Thu, 09 Apr 2020 17:00:00 +0800</pubDate><description><![CDATA[一般用于灰度图像，使用条件是已知目标在政府图像中所占的面积比为P%，先得到图像的灰度直方图，然后从小到大累加，直到为P%，记录当前灰度，以它为阈值来分割图像。条件很苛刻，大部分情况下都用不上。

...]]></description><category></category></item><item><title><![CDATA[MIN_VALUE与MAX_VALUE]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/88648815</link><guid>https://blog.youkuaiyun.com/mleage/article/details/88648815</guid><author>mleage</author><pubDate>Mon, 18 Mar 2019 20:10:25 +0800</pubDate><description><![CDATA[遇到一个理所当然但是又没注意到的问题。
在JDK中，整形类型是有范围的，最大值为Integer.MAX_VALUE，即2147483647，最小值为Integer.MIN_VALUE -2147483648。
对整形最大值加1，2147483648（越界了），那么此时值为多少呢？结果是-2147483648，即是Integer.MIN_VALUE。
类似的，对Integer.MIN_VALUE取反...]]></description><category></category></item><item><title><![CDATA[第一行代码8.3调用照相机后图片不加载的BUG]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/87278407</link><guid>https://blog.youkuaiyun.com/mleage/article/details/87278407</guid><author>mleage</author><pubDate>Thu, 14 Feb 2019 15:57:26 +0800</pubDate><description><![CDATA[private void handleImageOnKitKat(Intent data){
String imagePath=null;
Uri uri=data.getData();
if(DocumentsContract.isDocumentUri(this,uri)){
//如果是document类型的uri,则通过document Id处理
String docId=Documents...]]></description><category></category></item><item><title><![CDATA[第一行代码第二版8.2.1小节通知的基本用法在android 8.0运行未出结果]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/87207466</link><guid>https://blog.youkuaiyun.com/mleage/article/details/87207466</guid><author>mleage</author><pubDate>Wed, 13 Feb 2019 21:02:03 +0800</pubDate><description><![CDATA[https://blog.youkuaiyun.com/weixin_42146999/article/details/80994176

]]></description><category></category></item><item><title><![CDATA[android bundle存放数据详解]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/86642962</link><guid>https://blog.youkuaiyun.com/mleage/article/details/86642962</guid><author>mleage</author><pubDate>Fri, 25 Jan 2019 11:55:45 +0800</pubDate><description><![CDATA[https://blog.youkuaiyun.com/h183288132/article/details/49701615

]]></description><category></category></item><item><title><![CDATA[报错：You need to use a Theme.AppCompat theme (or descendant) with this activity.]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/86640133</link><guid>https://blog.youkuaiyun.com/mleage/article/details/86640133</guid><author>mleage</author><pubDate>Fri, 25 Jan 2019 11:08:38 +0800</pubDate><description><![CDATA[报错：You need to use a Theme.AppCompat theme (or descendant) with this activity.
学习 Activity 生命周期时希望通过 Dialog 主题测试 onPause() 和 onStop() 的区别，点击按钮跳转 Activity 时报错：
复制代码
E/AndroidRuntime: FATAL EXCEPTION: m...]]></description><category></category></item><item><title><![CDATA[判断浮点数的相等问题]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85487075</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85487075</guid><author>mleage</author><pubDate>Mon, 31 Dec 2018 21:10:33 +0800</pubDate><description><![CDATA[浮点数是不能直接用==来判断相等与否的，因为计算机很难判断浮点数的精度。所以浮点数要用math,h头文件里的fabs函数来取两个浮点数之差的绝对值，再判断是否小于了相应的精度。另外，整形绝对值函数是abs哦

...]]></description><category></category></item><item><title><![CDATA[浮点数比较大小问题]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85486121</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85486121</guid><author>mleage</author><pubDate>Mon, 31 Dec 2018 20:53:23 +0800</pubDate><description><![CDATA[如两个double类型值a和b，用a==b不法得出正确结果，即使两个数确实相等。因为编译器很难确定浮点数的具体精度。

]]></description><category></category></item><item><title><![CDATA[scanf()double类型值输入问题]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85486034</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85486034</guid><author>mleage</author><pubDate>Mon, 31 Dec 2018 20:51:50 +0800</pubDate><description><![CDATA[scanf()如果想要输入double值，不能够使用%f而是要使用%lf，否则会出错

]]></description><category></category></item><item><title><![CDATA[关于scanf("%[^\n]",str)的输入问题]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85421765</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85421765</guid><author>mleage</author><pubDate>Mon, 31 Dec 2018 00:19:53 +0800</pubDate><description><![CDATA[int n;
char string[20][100];
scanf(&quot;%d&quot;, &amp;amp;n);
for (int i = 0; i &amp;lt; n; i++)
{
	int count=0;
	getchar();
	scanf(&quot;%[^\n]&quot;, string[i]);
	for (int j = 0; j &amp;lt; strlen(string[i]); j++)
	{
		if ((stri...]]></description><category></category></item><item><title><![CDATA[注意scanf()的输入格式]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85395691</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85395691</guid><author>mleage</author><pubDate>Sun, 30 Dec 2018 17:00:31 +0800</pubDate><description><![CDATA[今天遇到一个bug是因为想输入字符串却在scanf里写的是%d,这样的低级错误以后不能再犯，以此为戒

]]></description><category></category></item><item><title><![CDATA[四舍五入的方法]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85393901</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85393901</guid><author>mleage</author><pubDate>Sun, 30 Dec 2018 16:30:07 +0800</pubDate><description><![CDATA[printf(&quot;%d&quot;, (int)(max + 0.5));

]]></description><category></category></item><item><title><![CDATA[2018.12.28死循环bug]]></title><link>https://blog.youkuaiyun.com/mleage/article/details/85322428</link><guid>https://blog.youkuaiyun.com/mleage/article/details/85322428</guid><author>mleage</author><pubDate>Fri, 28 Dec 2018 15:11:43 +0800</pubDate><description><![CDATA[编写程序中出现：0x00B31B7A 处(位于 Project4.exe 中)引发的异常: 0xC0000005: 读取位置 0x013610的异常导致程序无法正常运行，经调试后是因为一条while(tem[0]!=’\0’)造成的死循环，将0改为变量j后程序正常运行。

...]]></description><category></category></item></channel></rss>