自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (31)
  • 收藏
  • 关注

原创 differential forms

Tutorial comes from https://www.youtube.com/watch?v=jFe6dMnpQho 0-forms : f:R3→Rf : \mathbb R^3 \rightarrow \mathbb R 1-forms : α=adx+bdy+cdz=w<a,b,c> \alpha =adx + bdy + cdz = w_{<a,b,c>} 2-forms

2017-02-28 00:50:16 737

原创 compute_voronoi_triangulation_mesh

function [vertex_voronoi,faces_voronoi] = compute_voronoi_triangulation_mesh(Q, vertex, faces)% compute_voronoi_triangulation_mesh - compute a triangulation%% [vertex_voronoi,face_voronoi] = com

2017-02-23 23:35:56 672

转载 perform_faces_reorientation

function faces = perform_faces_reorientation(vertex,faces, options)% perform_faces_reorientation - reorient the faces with respect to the center of the mesh%% faces = perform_faces_reorientation

2017-02-23 23:07:23 403

转载 perform_farthest_point_sampling_mesh

function [points,D] = perform_farthest_point_sampling_mesh( vertex,faces, points, nbr_iter, options )% perform_farthest_point_sampling - samples points using farthest seeding strategy%% [points,D]

2017-02-23 22:58:14 1047

原创 AE的一些基本知识

ctrl+shift+d切割帧composition setting 设置帧数add to render queue,  output to render 渲染视频到本地文件

2017-02-23 19:47:50 1857

原创 export frames as pictures

function show_initilization%show_target(0.2, 1)%show_template('v4_mesh0.obj', 0.5, 1, 'interp')name = 'target.obj';%options = [];options.name = name;[vertex,faces] = read_mesh(name);vert

2017-02-23 19:42:01 497

原创 write frames to a video

%# figurefigure, set(gcf, 'Color','white')Z = peaks; surf(Z); axis tightset(gca, 'nextplot','replacechildren', 'Visible','off');[az,el]=view;xl=xlim;yl=ylim;zl=zlim;%# preallocatenFrames =

2017-02-23 19:40:07 688

转载 how to fix the frame size?

The problem is that due to the rotation of the graph the size of the axis changes, so you end up with a sequence of frames of different sizes. You can see this if you insert the liness = size(mov(k)

2017-02-23 19:20:06 661

原创 sort_nat

function [cs,index] = sort_nat(c,mode)%sort_nat: Natural order sort of cell array of strings.% usage: [S,INDEX] = sort_nat(C)%% where,% C is a cell array (vector) of strings to be sorted.%

2017-02-19 08:16:44 4727 1

原创 how change files in matlab2 , cell 函数的运用

function main pics = dir('coil-20-proc');%list all the files in folder photo name = extractfield(pics, 'name');% extract name fields into a cell array index = ~ismember(name,[ {'.'},{'

2017-02-19 06:51:46 519

原创 intersectLineMesh3d

C:\TestMatlab\geom3dfunction [points, pos, faceInds] = intersectLineMesh3d(line, vertices, faces, varargin)%INTERSECTLINEMESH3D Intersection points of a 3D line with a mesh%% INTERS = intersectLi

2017-02-16 18:43:41 918

原创 Deformable 3D shape registration based on local similarity transforms

本质上是shape matching的as similar as possible版本它的主要贡献在于, 找到一种方法使displacement field尽量平滑, 具体的做法就是公式7, 使每个点的偏移量, 尽量接近它周围邻居偏移量的平均值.注意tkt_k公式在paper中是错误的 应该为 tk=ck(t)−skRkC0kt_k = c_k(t) - s_kR_kC^0_k因为rk=skRk

2017-02-16 07:21:08 771

原创 求cluster的质心坐标

c0 = arrayfun(@(x) mean(v0([x neighbors{x}],:)), 1:n, 'UniformOutput', 0); c0 = reshape(cell2mat(c0),3,[]);c0 = c0'

2017-02-16 00:56:44 1618

原创 Laplacian surface editing

先讲下各个公式公式(2)是laplacian coordinates的定义公式(5)第一部分是保证laplacian coordinate坐标的一致性, 后面是handle点的约束公式(8)是T的构造公式(12)是求T中的系数2D MATLAB 版在它的project里面自带, 这里将其拓展成3D版本,  源代码如下:func

2017-02-15 22:27:35 3435 2

原创 houdini 渲染wireframe

2017-02-14 11:21:20 1746

原创 文章索引加1

for frame = 55:-1:0 before_name = strcat(strcat('Q:\CGI2017\bak\RenderByHoudini\v4_mesh',num2str(frame)),'.obj');% add photo prefix after_name = strcat(strcat('Q:\CGI2017\bak\RenderByHoudin

2017-02-14 02:08:01 339

原创 图片转视频软件

VirtualDub

2017-02-14 00:32:55 736

原创 my plot mesh

function options = my_plot_mesh(vertex,face,options)% plot_mesh - plot a 3D mesh.%% my_plot_mesh(vertex,face, options);%% 'options' is a structure that may contains:% - 'normal' : a (

2017-02-13 01:06:18 634

原创 sub figure without letter numbering

\begin{figure*} \captionsetup[subfigure]{labelformat=empty} \centering \subfloat[Asdaf]{\includegraphics[width=0.11\textwidth]{./human2gorilla/crop/sample.png}\label{fig:sample}}\hspace{0.05\te

2017-02-12 03:00:54 306

原创 read tetgen file

function [p,f,t] = read_tetgenmesh( file )% READ_TETGENMESH Reads Tetgen meshes% Reads the native Tetgen format mesh-files into Matlab. The output% [p,f,t] (nodes,faces,tetras) is similar to

2017-02-09 20:47:33 491

原创 compute_vertex_ring

function vring = compute_vertex_ring(face)% compute_vertex_ring - compute the 1 ring of each vertex in a triangulation.%% vring = compute_vertex_ring(face);%% vring{i} is the set of vertices

2017-02-08 09:21:41 574

原创 houdini 做选点效果

注意 object merge的时候, 选好transform

2017-02-05 02:29:17 1540

原创 如何算三角形的cotangent

公式为:cotC=a2+b2−c24A\cot C = \frac{a^2 + b^2 - c^2}{4A} 证明 根据余弦定理cosC=a2+b2−c22ab\cos C = \frac{a^2 + b^2 - c^2}{2ab} 根据面积公式 A=12absinCA = \frac{1}{2}ab \sin C 所以 sinC=2Aab\sin C = \frac{2A}{ab}所以co

2017-02-04 20:55:06 1130

原创 两个3*3*n旋转矩阵在第三维相乘

比较low的方法for i = 1:nC(:,:,i) = A(:,:,i) * B(:,:,i);endelegant的方法, 用arrayfunarrayfun(@(M1,M2,n) M1(:,:,n)*M2(:,:,n), A, B, size(A,3) )

2017-02-04 00:11:23 2745

原创 scalar2color

function c = scalar2color(scalar, precision)%precision表示有多少间隙, % convert scalar to color vector%%% Copyright (c) 2017 seamanj@NCCAif size(scalar,2)>size(scalar,1) scalar = scalar';endc

2017-02-02 04:09:04 1040

原创 rescale

function y = rescale(x,a,b)% rescale - rescale data in [a,b]%% y = rescale(x,a,b);%% Copyright (c) 2004 Gabriel Peyr�if nargin<2 a = 0;endif nargin<3 b = 1;endm = min(x(:));M

2017-02-02 04:07:54 6035 1

转载 normrow

function [ B ] = normrow( A ) % NORMROW Compute l2 row vector norms % % B = normrow( A ) % % Input: % A #A by D list of row vectors of dimension D % Output: % B #A list of norms o

2017-02-01 04:21:45 569

average diffusion distance

average diffusion distance implemented in matlab

2016-08-13

Farthest Sampling on 3D meshes with mesh kept based on diffusion distance

Farthest Sampling on 3D meshes with mesh kept based on diffusion distance implemented in matlab

2016-08-13

Fast Marching on 3D Meshes with diffusion distance

Fast Marching on 3D Meshes with diffusion distance implemented in matlab

2016-08-13

PCA implementation

PCA implementation in matlab

2016-08-06

Farthest Sampling on 3D meshes with mesh kept

Farthest Sampling on 3D meshes with mesh kept

2016-08-03

Fast Marching on 3D Meshes

implement fast marching on 3d meshes in matlab

2016-07-31

farthest point sampling

implement farthest point sampling in matlab

2016-07-25

2D Fast Marching Computations

implement 2d fast marching computations in matalb

2016-07-25

princal component analysis implemented in matlab

princal component analysis implemented in matlab

2016-07-09

as-conformal-as-possible surface registration

implement paper "as-conformal-as-possible surface registraion" in matlab

2016-07-07

position based dynamics

position based dynamics implemented in matlab

2016-07-05

mixed finite elements

implement mixed finite elements in matlab

2016-06-23

laplacian interpolation

implement laplacian interpolation in matlab

2016-06-23

libmysqlclient.so.16

solve QSqlDatabase: QMYSQL driver not loaded problem

2016-05-17

GLM显示带纹理的OBJ

GLM显示带纹理的OBJ

2016-02-04

2d perlin noise ocean

采用二维柏林噪声模拟的海洋 .zip

2016-01-09

softmax regression

softmax regression 源代码 源码用的armadillo数学库,如何安装armadillo数学库,请看我的博客 http://blog.csdn.net/seamanj/article/details/49892715

2015-11-20

shadow Mapping 阴影投影

shadow Mapping 阴影投影 主要介绍阴影投影实现的原理 和 实现方法

2014-05-12

3D_Shader_DisplacementMapping_Sphere.rar

移位贴图(Displacement Mapping)的实现

2013-09-05

3D_Shader_ProjectivetTexturing.rar

投影贴图(projective texturing)的实现

2013-09-01

3D_Shader_CubeEnvMapping.rar

立方体环境映射(cubic environment mapping)的实现,其中包括了反射,折射,菲涅尔效应,色散等知识.

2013-08-29

3D_Shader_NormalMapping.rar

3D 法线贴图(normal mapping)的实现

2013-08-15

3D_Shader_SphereEnvMapping_by_seamanj

3D球形环境映射(3D Sphere environment mapping)的实现

2013-08-15

3D_Shader_SphereEnvMapping.rar

球形环境映射(sphere environment mappint)原理的实现

2013-07-23

USB监控器.rar

USB监控器_去网页打开 使用到的工具,OD和W32DASM

2013-06-14

texture&blending

DX 混合 纹理操作 包括多重纹理的操作,以及BACKBUFFER的读取

2013-05-03

3D_Math_Quaternion

四元组的应用 包含: 1.从"按定轴旋转某角度"建立四元组 2.四元组的球形插值插值 3.四元组与3x3旋转矩阵的相互转换

2013-03-08

3D_Shader_Expansion&Shrinkage;_by_Seamanj

3D_Shader_Expansion&Shrinkage;_by_Seamanj

2013-03-08

3D_Math_Solve_Matrix_Inverse_by_Seamanj.rar

矩阵各种求逆的方法 包括: 1.用矩阵行列式求逆 2.用高斯-约当消元法求逆 3.用LU分解求逆

2013-03-06

3D_Math_Solve_Matrix_Inverse.rar

矩阵各种求逆的方法 包括: 1.用矩阵行列式求逆 2.用高斯-约当消元法求逆 3.用LU分解求逆

2013-03-06

3D_Math_Quaternion_by_Seamanj.rar

四元组应用的实现 包括了 1.从"按指定轴旋转多少度"建立四元组 2.四元组的球形插值 3.四元组与3x3旋转矩阵的相互转换

2013-03-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除