Code covered by the BSD License
-
BatchFaceColorGrad(FM, VM, Ca...
function [FaceColorT, FaceVisibleM] = BatchFaceColorGrad(FM, VM, CamParamSA, ...
-
CamS2Vector1(CamParamS)
Wish 1: Decompose matlab camera parameter to different vectors
-
CamSInterp1(CamParam1S, CamPa...
% function CamParamS = CamSInterp1(CamParam1S, CamParam2S, lamda)
-
CameraConvert2(CameraFileName...
-
OffScreenTest(interactive)
Wish 4: Test script for BatchFaceColorGrad
-
ProjectMesh2Image(FaceM, Vert...
% ProjectMesh2Image: adaptor for type check and other pre-processing
-
RenderColorMesh(FM, VM, Color...
-
ShadowProj2(FM, VM, LightDirM...
function FacePixelCountM = ShadowProj2(FM, VM, LightDirM, ObjCenterV, maxRadius,
-
Vector2CamS1(ViewPointV, Look...
Wish 1: construct the matlab camera parameter from different vectors
-
CompileOffscreen.m
-
loadbuddhaimagecam.m
-
View all files
from
Matlab Offscreen Rendering Toolbox
by Tianli Yu
Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc.
|
| CompileOffscreen.m |
%%
% This is a matlab compilation script that will compile the Offscreen
% library
% Author: Tianli Yu, tianli@ieee.org, Mar 30, 2009
%%
% Please Modify these two path strings to point to the GLUT and GLEW library
% -I is the header file include path, -L is the binary lib path
% Here is a typical path for mac/linux
GlewPath = '-I/opt/local/include -L/opt/local/lib -lGLEW';
GlutPath = '-I/opt/local/include -L/opt/local/lib -lglut';
%% For Windows you could download the GLEW and GLUT binary and put them under
%% the root of this toolbox, then use the following
%GlewPath = '-I./glew/include -L./glew/lib -lGLEW';
%GlutPath = '-I./glut -L./glut lglut';
%% For Ubuntu Linux, just install libglew1.5 and libglew1.5-dev, freeglut
%% is usually pre-installed
%GlewPath = '';
%GlutPath = '';
%% Compiling the source code
%disp(['mex ' GlewPath ' ' GlutPath ' MexGlutInit.cpp']);
%eval(['mex ' GlewPath ' ' GlutPath ' MexGlutInit.cpp']);
disp(['mex ' GlewPath ' ' GlutPath ' BatchFaceColorGradImpl.cpp']);
eval(['mex ' GlewPath ' ' GlutPath ' BatchFaceColorGradImpl.cpp']);
disp(['mex ' GlewPath ' ' GlutPath ' ProjectMesh2ImageImpl.cpp']);
eval(['mex ' GlewPath ' ' GlutPath ' ProjectMesh2ImageImpl.cpp']);
disp(['mex ' GlewPath ' ' GlutPath ' RenderColorMeshImpl.cpp']);
eval(['mex ' GlewPath ' ' GlutPath ' RenderColorMeshImpl.cpp']);
disp(['mex ' GlewPath ' ' GlutPath ' ShadowProj2Impl.cpp']);
eval(['mex ' GlewPath ' ' GlutPath ' ShadowProj2Impl.cpp']);
|
|
Contact us at files@mathworks.com