chaooooooo
这个作者很懒,什么都没留下…
展开
-
IP Video
NDI:SRTRISTRTMPRTSPDANTE。原创 2023-09-15 16:35:09 · 214 阅读 · 0 评论 -
image-matting 一些参考
image matting 一些参考地址原创 2023-07-18 10:53:40 · 397 阅读 · 0 评论 -
【转载】几种抠象技术理论试验-1 (Luma-Key,Chroma-Key)
原文出处http://blog.sina.com.cn/s/blog_5cebe9cf0100nfea.html 在开始之前先确定数值以及符号约定默认的图像空间是:RGB空间使用和Shake一样的float表示颜色数值,颜色范围从 [0-1] 0:表示纯白 1:表示纯黑,0.5表示50%灰。红色使用 (1,0,0) 符号表示。R 表示 红通道G 表示 绿通道转载 2016-01-26 12:08:53 · 3746 阅读 · 0 评论 -
经典的算法 rgb yuv 查表转换
代码的运算速度取决于以下几个方面1、 算法本身的复杂度,比如MPEG比JPEG复杂,JPEG比BMP图片的编码复杂。2、 CPU自身的速度和设计架构3、 CPU的总线带宽4、 您自己代码的写法将RGB格式的彩色图像先转换成YUV图像。图像转换的公式如下:Y = 0.299 * R + 0.587 * G + 0.114 * B;图像尺转载 2014-11-03 15:07:33 · 2470 阅读 · 0 评论 -
色键 Chroma Key
整理下色键代码ffmpeg typedef struct ColorkeyContext { const AVClass *class; /* color offsets rgba */ int co[4]; uint8_t colorkey_rgba[4]; float similarity; float blend;} Colork原创 2016-01-22 17:34:35 · 4190 阅读 · 0 评论 -
摄像机标定 camera calibration
张正友摄像机标定的研究(MATLAB+OpenCV)张正友 本科浙大,本来以为是中国人论文是中文呢,哎张正友的主页: http://research.microsoft.com/en-us/um/people/zhang/Calib/不过里面的棋盘格跟我的不一样啊,why???,我决定先看看中文的论文吧,我的首要任务是弄清楚输入输出,流程,怎么用吧matlab 跟转载 2015-07-23 11:32:30 · 3352 阅读 · 0 评论 -
CUDA Cuts: Fast Graph Cuts on the GPU
转自 http://blog.youkuaiyun.com/wangyaninglm/article/details/43867917原文出处:http://lincccc.blogspot.tw/2011/03/cuda-cuts-fast-graph-cuts-on-gpu_03.html现在需要代理才能访问,所以就转载了。http://www.nvidia.c转载 2015-09-11 11:22:12 · 689 阅读 · 0 评论 -
几道面试题
最近接到不少面试机会在面试中问到技术的很少不过问到的地方我都打得不好下面把这些面试题整理一下:1 一次遍历把一个单向列表 逆序刚开始第一次想到的算法比较笨 其实可以用三个指针来实现目的pHead->next = NULL;pNode p1 = pHead;pNode p2 = p1->next;pNpde p3 = p2->next;while(p3原创 2015-05-20 09:48:50 · 495 阅读 · 0 评论 -
一个读取图片的代码
摘自https://github.com/nothings/stb单头文件 不用添加多余依赖 比较方便使用/* stb_image - v2.12 - public domain image loader - http://nothings.org/stb_image.h no warranty implied;...转载 2018-04-24 16:03:10 · 4099 阅读 · 2 评论 -
完整 ycrcb转rgb
#include <stdio.h>int main() { float kr_value[3] = { 0.299f, 0.2126f, 0.2627f }; float kb_value[3] = { 0.114f, 0.0722f, 0.0593f }; for (int i = 0; i < 3; i++) { float kr = kr_value[i]; float kb = kb_value[i]; printf("R = Y + %0.4f * C原创 2020-11-24 11:12:38 · 934 阅读 · 0 评论 -
YUVXtoRGBX
Uses Q14 fixed point approximation of BT.709 and BT.601 coefficients BT.709 R'= Y' + 0.0000*U + 1.5748*V G'= Y' - 0.1873*U - 0.4681*V B'= Y' + 1.8556*U + 0.0000*V BT.601 R'= Y' + 0.000*U + 1.403*V G'= Y' - 0.344*U - 0.714*V原创 2020-11-23 19:12:19 · 435 阅读 · 0 评论 -
tiny planet shader
#version 430 coreprecision mediump float;uniform sampler2D texture;uniform float scale, aspect, time;uniform mat3 transform;varying vec2 v_texcoord;#define PI 3.141592653589793void main(){转载 2016-10-27 11:17:57 · 524 阅读 · 0 评论 -
从平面坐标转球面坐标加旋转
clearfilename = '1.jpg';lena = imread(filename); % 读入一幅彩色图像I=imresize(lena,0.125,'bicubic');height= size(I, 1);width = size(I, 2);M_PI = 3.14159265358979323846; M_PI_2 = 1.570796326794原创 2016-10-10 11:23:52 · 4628 阅读 · 1 评论 -
通过计算机视觉估算颜值
原址 http://blog.youkuaiyun.com/ubunfans/article/details/49765411今天看到一篇估算颜值的blog,看起来挺有意思的,记录下来,分享一下!哈哈哈哈 先放地址:Computer Vision for Predicting Facial Attractiveness 同时要感谢一下幕后英雄,那些收集整理并公开数据库的伟人们SCUT-FB转载 2015-11-24 14:49:39 · 778 阅读 · 0 评论 -
绕任意单位轴旋转矩阵计算
http://blog.youkuaiyun.com/xiajun07061225/article/details/7766838 在三维变换中,经常要用到旋转变换,而且很多变换是围绕任意轴的。那么下面就介绍绕任意单位轴旋转的两种方法。假设要旋转的角度是a,围绕的轴是r。方法一:(1)构建新的基寻找另外两条单位长度的坐标轴s、t,他们相互垂转载 2015-08-31 19:23:38 · 3084 阅读 · 0 评论 -
Mac OS下安装python 扩展库 PIL
下载libjpeg和zlib:http://www.ijg.org/files/jpegsrc.v6b.tar.gzhttp://www.zlib.net或者下载我上传的集合包http://download.youkuaiyun.com/detail/zkdemon/7862399安装libjpeg:[python] view转载 2015-06-02 22:54:12 · 943 阅读 · 0 评论