Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LUT to project_fisheye_distort in drtk
Summary: The purpos of this stack is to enable LUT in rosetta2. To do this: 1. extend project_fisheye_distort_62 to support LUT 2. propagate lut in DRTK rendering functions 3. load the LUT in HMCCalibrationSCIOVRS 4. register LUT as an asset for loading 5. extend the rendering pipeline in rosetta2 with LUT 6. hook the care cmd string generated in fblearner pipeline with assets defined in 4. This diff implements 1. The look up table contains two parts: 1. lut_vector_field: N x 2 X H_lut x W_lut stores the offset for each camera, e.g. 2 x 41 x 41 for FETA camera 2. lut_spacing: N x 2 stores the spacing of each grid in lut_vector_field, e.g. 10.0 for FETA 400 x 400 camera. Usually spacing is the same for both with and height directions in calibration file but might be different if we resize the field. The offset for each pixel is found by grid sampling Reviewed By: patricksnape Differential Revision: D62097271 fbshipit-source-id: 1655cb1dfc8d5e34bc97c4bab16b07a9ee2cf636
- Loading branch information