卡通人物的贴图及阴影实现。 在抗锯齿方面,OpenGL中只需glEnable(GL_LINE_SMOOTH)。 对于一个向量的旋转,直接乘以旋转矩阵可以得出。下面为代码, 灯光设置为Z轴正方向(0,0,1),然后计算其法向量normal,接着再和旋转后的向量来个点积得到shade值。若小于零,就设置 ...
分类:
其他好文 时间:
2016-09-25 18:44:20
阅读次数:
283
opencv库提供了好几种模糊平滑Smooth操作的类型作为cvSmooth的参数传入,从而达到不同的平滑效果,另外复习了一下如何复制一份图像和重新调整图像大小。 调整图像大小目前是按照一下步骤进行: 1、先cvcreate一个新的图像,cvcreate中的参数设为调整之后的大小(用Cvsize的构 ...
分类:
其他好文 时间:
2016-09-09 17:00:47
阅读次数:
300
HDU 5826 physics(物理) Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Description 题目描述 There are n balls on a smooth h ...
分类:
其他好文 时间:
2016-08-23 01:15:33
阅读次数:
180
题目链接: physics Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description There are n balls on a smooth horiz ...
分类:
其他好文 时间:
2016-08-11 19:12:40
阅读次数:
149
In this lesson, we discuss animating using arrays, and how different data types are interpolated while animating. If you want smooth animation, the ar ...
分类:
其他好文 时间:
2016-07-20 19:28:12
阅读次数:
187
1. Introduction Much like Newton's method is a standard tool for solving unconstrained smooth minimization problems of modest size, proximal algorithm ...
分类:
其他好文 时间:
2016-07-09 11:55:19
阅读次数:
320
这一节,谈一谈如何对图像进行平滑,也可以叫做模糊。平滑图像的主要目的是减少噪声,这样采用平滑图像来降低噪声是是非常常见的预处理方法。
1.归一化滤波平滑-Homogeneous Smoothing
2.高斯滤波平滑-Gaussian Smoothing
3.中值滤波平滑-Median Smoothing
4.双边滤波平滑-Bilateral Smoothing
平滑是通过滑动...
分类:
其他好文 时间:
2016-06-02 14:08:36
阅读次数:
429
原文 http://blog.ibireme.com/2015/11/12/smooth_user_interfaces_for_ios/ 这篇文章会非常详细的分析 iOS 界面构建中的各种性能问题以及对应的解决思路,同时给出一个开源的微博列表实现,通过实际的代码展示如何构建流畅的交互。 Index ...
分类:
移动开发 时间:
2016-05-18 12:12:07
阅读次数:
406
ex1-32 要求利用过程返回值给出一个用于计算 f(f (x))这样的函数过程
ex1-33要求计算一个函数的平滑函数g(x)=(f(x-dx)+f(x)+f(x+dx))/3
并利用ex1-32给出的过程进行多次的平滑运算以下,给出代码
(define (smooth f)
(lambda (x)
(/ (+ (f (- x .001))...
分类:
其他好文 时间:
2016-05-12 22:00:23
阅读次数:
134
1 // CameraMovement.cs 2 using UnityEngine; 3 using System.Collections; 4 5 public class CameraMovement : MonoBehaviour 6 { 7 public float smooth = 1.
分类:
其他好文 时间:
2016-03-09 23:47:34
阅读次数:
239