Skip to content
Snippets Groups Projects
Select Git revision
  • 7b6aefc382c19353ceafbf4bed1acc03207f1841
  • master default protected
  • feature/SKR
  • censuseval
  • exp/labcolours
  • feature/disconflow
  • exp/multires-sgm
  • chromatest
  • bug/feedrecord
  • feature/375/fullres-fstream
  • feature/poses
  • feature/stereocalib
  • feature/gui2-pch
  • feature/gui2-nanogui-mitsuba
  • feature/use-new-frame
  • feature/depth-touch
  • feature/use10bit
  • bug/optflow-disparity
  • feature/websocket-pose
  • exp/candidatemask
  • feature/sgm-experimental
  • v0.0.6
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
27 results

vertical_path_aggregation.hpp

Blame
  • Nicolas Pope's avatar
    Implements #379 Min Disparity in SGM
    Nicolas Pope authored
    7b6aefc3
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    vertical_path_aggregation.hpp 1.29 KiB
    /*
    Copyright 2016 Fixstars Corporation
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
    http ://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    #ifndef SGM_VERTICAL_PATH_AGGREGATION_HPP
    #define SGM_VERTICAL_PATH_AGGREGATION_HPP
    
    #include "types.hpp"
    
    namespace sgm {
    namespace path_aggregation {
    
    template <unsigned int MAX_DISPARITY>
    void enqueue_aggregate_up2down_path(
    	cost_type *dest,
    	const feature_type *left,
    	const feature_type *right,
    	int width,
    	int height,
    	unsigned int p1,
    	const uint8_t *p2,
    	int p2_pitch,
    	const uint8_t* w,
    	int w_pitch,
    	int min_disp,
    	cudaStream_t stream);
    
    template <unsigned int MAX_DISPARITY>
    void enqueue_aggregate_down2up_path(
    	cost_type *dest,
    	const feature_type *left,
    	const feature_type *right,
    	int width,
    	int height,
    	unsigned int p1,
    	const uint8_t *p2,
    	int p2_pitch,
    	const uint8_t* w,
    	int w_pitch,
    	int min_disp,
    	cudaStream_t stream);
    
    }
    }
    
    #endif