Commit 14d7689b authored by Andrey Filippov's avatar Andrey Filippov

More methods replacing flat code

parent dc090454
This diff is collapsed.
...@@ -122,7 +122,7 @@ public: ...@@ -122,7 +122,7 @@ public:
void setTextures(); void setTextures();
void setRGBA(); void setRGBA();
void testRotMatrices (int num_runs); // 424 trot_deriv testRotMatrices (int num_runs); // 424
void testReverseDistortions (int num_runs); // 468 void testReverseDistortions (int num_runs); // 468
void testGeomCorrect (int num_runs); // 534 void testGeomCorrect (int num_runs); // 534
void testConvertDirect (int num_runs); // 608 void testConvertDirect (int num_runs); // 608
...@@ -133,6 +133,7 @@ public: ...@@ -133,6 +133,7 @@ public:
void testCorrelate2DIntra (int num_runs); void testCorrelate2DIntra (int num_runs);
void testCorrelate2DInterSelf(int num_runs); void testCorrelate2DInterSelf(int num_runs);
void saveClt(const char ** paths, const char * prompt, float ** gpu_clt_h);
// for both intra and inter! // for both intra and inter!
void saveIntraCorrFile(const char * path, const char * prompt, int num_corrs, int num_corr_indices, float * gpu_corrs, int * gpu_corr_indices, int num_sel_sensors); void saveIntraCorrFile(const char * path, const char * prompt, int num_corrs, int num_corr_indices, float * gpu_corrs, int * gpu_corr_indices, int num_sel_sensors);
void saveInterCorrFile(const char * path, const char * prompt, int num_corrs, int num_corr_indices, float * gpu_corrs_td, int * gpu_corr_indices, int num_sel_sensors); void saveInterCorrFile(const char * path, const char * prompt, int num_corrs, int num_corr_indices, float * gpu_corrs_td, int * gpu_corr_indices, int num_sel_sensors);
......
...@@ -24,6 +24,9 @@ public: ...@@ -24,6 +24,9 @@ public:
static constexpr int kernels_hor = KERNELS_HOR; static constexpr int kernels_hor = KERNELS_HOR;
static constexpr int kernels_vert = KERNELS_VERT; static constexpr int kernels_vert = KERNELS_VERT;
static constexpr int rbyrdist_len = RBYRDIST_LEN;
static constexpr int tiles_per_block_geom = TILES_PER_BLOCK_GEOM;
//
static constexpr int task_inter_en = TASK_INTER_EN; // 10 // Task bit to enable interscene correlation static constexpr int task_inter_en = TASK_INTER_EN; // 10 // Task bit to enable interscene correlation
static constexpr int task_corr_en = TASK_CORR_EN; // 9 // Task bit to enable intrascene correlation (pairs defined separately) static constexpr int task_corr_en = TASK_CORR_EN; // 9 // Task bit to enable intrascene correlation (pairs defined separately)
static constexpr int task_text_en = TASK_TEXT_EN; // 8 // task bit to enable texture generation static constexpr int task_text_en = TASK_TEXT_EN; // 8 // task bit to enable texture generation
...@@ -46,12 +49,14 @@ public: ...@@ -46,12 +49,14 @@ public:
static constexpr int tp_task_centerxy_offset = TP_TASK_CENTERXY_OFFSET;// 3 static constexpr int tp_task_centerxy_offset = TP_TASK_CENTERXY_OFFSET;// 3
static constexpr int tp_task_scale_offset = TP_TASK_SCALE_OFFSET;// 5 static constexpr int tp_task_scale_offset = TP_TASK_SCALE_OFFSET;// 5
static constexpr int tp_task_xy_offset = TP_TASK_XY_OFFSET;// 6 static constexpr int tp_task_xy_offset = TP_TASK_XY_OFFSET;// 6
static constexpr float fat_zero = 1000.0f; // 300.0f; // 30.0; static constexpr float fat_zero = 1000.0f; // 300.0f; // 30.0;
#ifdef DBG_TILE #ifdef DBG_TILE
static constexpr int debug_tile{1}; static constexpr int debug_tile{1};
static constexpr int dbg_tile{DBG_TILE};
#else #else
static constexpr int debug_tile{0}; static constexpr int debug_tile{0};
static constexpr int dbg_tile{-1};
#endif #endif
private: private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment