source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vrippack-0.31/src/vrip/vripGlobals.cc @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 2.4 KB
Line 
1/*
2
3Brian Curless
4
5Computer Graphics Laboratory
6Stanford University
7
8---------------------------------------------------------------------
9
10Copyright (1997) The Board of Trustees of the Leland Stanford Junior
11University. Except for commercial resale, lease, license or other
12commercial transactions, permission is hereby given to use, copy,
13modify this software for academic purposes only.  No part of this
14software or any derivatives thereof may be used in the production of
15computer models for resale or for use in a commercial
16product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND
17CONCERNING THIS SOFTWARE.  No support is implied or provided.
18
19*/
20
21
22#include "Linear.h"
23#include "defines.h"
24#include "OccGrid.h"
25#include "OccGridRLE.h"
26#include "OccGridNormRLE.h"
27#include "DepthMap.h"
28
29int SuperQuiet = FALSE;
30int Quiet = FALSE;
31int Verbose = FALSE;
32int Warn = FALSE;
33int MeshResolution = 1;
34int UseTails = FALSE;
35int TailsOnly = FALSE;
36int FillGaps = FALSE;
37int FillBackground = FALSE;
38int DoSilhouette = FALSE;
39int ShowNormals = FALSE;
40int ShowConfSlice = FALSE;
41int ShowValueWeight = FALSE;
42
43int OneLineAtATime = FALSE;
44
45float LASER_LINE_DIR_X = 1;
46float LASER_LINE_DIR_Y = 0;
47float LASER_LINE_DIR_Z = 0;
48
49float LASER_LINE_AT_T0_X = 0;
50float LASER_LINE_AT_T0_Y = 0.15920981547868;
51float LASER_LINE_AT_T0_Z = 1.22793387875641;
52
53int UsePerspectiveDir = 0;
54Vec3f PerspectiveCOP(0,0,0);
55Vec3f PerspectiveDir(0,0,-1);
56
57int MaxStepsToEdge;
58float EdgeLength;
59float MinViewDot = 0.15;
60float MaxEdgeLength = 0.003;
61uchar MinColor = 0;
62int UseEdgeLength = 0;
63float EdgeExtensionAngle = 45;
64int EdgeExtensionSamples = 3;
65float ConfidenceExponent = 2.0;
66float EdgeConfExponent = 1;
67unsigned char MinWeight = 0;
68int EdgeConfSteps = 8;
69unsigned char MinEdgeConfidence = 10;
70unsigned char ConfidenceBias = 1;
71float MinVertexConfidence = 10/255.0;
72float OccupancyRampWidth = 0.002;
73float WeightPos1 = OccupancyRampWidth/2 + 0.002;
74float WeightPos2 = WeightPos1 - 0.0005;
75float WeightPos3 = -OccupancyRampWidth/2;
76float WeightPos4 = WeightPos3 - 0.0005;
77float WeightPos5 = WeightPos4 - 0.0005;
78
79OccGrid *theGrid;
80OccGridRLE *backRLEGrid;
81OccGridRLE *frontRLEGrid;
82OccGridNormRLE *backRLEGridNorm;
83OccGridNormRLE *frontRLEGridNorm;
84DepthMap *theDepthMap;
85
86float D1, D2, M_VALUE, B_VALUE;
87float C1, C2, C3, C4, C5;
88float M_WEIGHT_1, M_WEIGHT_2, B_WEIGHT_1, B_WEIGHT_2;
89float MAX_STRETCH;
90float MAX_DEPTH_DIFFERENCE;
91
92float MergeTime = 0;
93float TesselationTime = 0;
94float ResampleRangeTime = 0;
Note: See TracBrowser for help on using the repository browser.