Rev | Line | |
---|
[37] | 1 | //$$ oneShot3d.h |
---|
| 2 | #include <math.h> |
---|
| 3 | |
---|
| 4 | #ifdef use_namespace |
---|
| 5 | namespace RBD_COMMON { |
---|
| 6 | #endif |
---|
| 7 | |
---|
| 8 | class DefaultParaValues |
---|
| 9 | { |
---|
| 10 | |
---|
| 11 | public: |
---|
| 12 | void setFolderNames(char *taskName, |
---|
| 13 | char *DepthPara, |
---|
| 14 | char *VarPara, |
---|
| 15 | char *GroundSkyPara, |
---|
| 16 | bool ScratchFlag, |
---|
| 17 | char *SFeaPara, |
---|
| 18 | char *FeaPara); |
---|
| 19 | |
---|
| 20 | //% ============== Highly changealbe parameters ======================== |
---|
| 21 | int SegVertYSize = 1200; |
---|
| 22 | int SegHoriXSize = 900; |
---|
| 23 | int VertYNuPatch = 55; |
---|
| 24 | int HoriXNuPatch = 61;//%305;%61; |
---|
| 25 | int VertYNuDepth = 55; |
---|
| 26 | int HoriXNuDepth = 305; |
---|
| 27 | int PopUpHoriX = 600; |
---|
| 28 | int PopUpVertY = 800; |
---|
| 29 | int batchSize = 10; |
---|
| 30 | int NuRow_default = 55; |
---|
| 31 | int WeiBatchSize = 5; |
---|
| 32 | int TrainVerYSize = 2272; |
---|
| 33 | int TrainHoriXSize = 1704; |
---|
| 34 | int MempryFactor =2; |
---|
| 35 | // % pics info |
---|
| 36 | double Horizon = 0.5;// % the position of the horizon in a pics (the bottom of the pic is 0 top is 1 middle is 1/2) |
---|
| 37 | // % segmentation info |
---|
| 38 | double sigm = 0.5;//%0.8%0.3; |
---|
| 39 | int k = 100; //%300;%200; |
---|
| 40 | int minp = 100; //%150;%20; |
---|
| 41 | |
---|
| 42 | // %================ camera info from kyle's code |
---|
| 43 | // % This can probably also be estimated from jpeg header |
---|
| 44 | double fx = 2400.2091651084; |
---|
| 45 | double fy = 7.3312729885838; |
---|
| 46 | double Oy = 1110.7122391785729; //%2272/2; % |
---|
| 47 | double Ox = 833.72104535435108; //%1704/2; % |
---|
| 48 | double a = 1704/fy; //%0.70783777; %0.129; % horizontal physical size of image plane normalized to focal length (in meter) |
---|
| 49 | double b = 2272/fx; //%0.946584169;%0.085; % vertical physical size of image plane normalized to focal length (in meter) |
---|
| 50 | double Ox = 1-(Ox/1704); //%0.489272914; % camera origin offset from the image center in horizontal direction |
---|
| 51 | double Oy = 1-(Oy/2272); //%0.488886982; % camera origin offset from the image center in vertical direction |
---|
| 52 | |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | #ifdef use_namespace |
---|
| 56 | } |
---|
| 57 | #endif |
---|
| 58 | |
---|
Note: See
TracBrowser
for help on using the repository browser.