-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathstereo-matching-libelas.h
49 lines (44 loc) · 2.27 KB
/
stereo-matching-libelas.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (c) 2017-2023 California Institute of Technology ("Caltech"). U.S.
// Government sponsorship acknowledged. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
#pragma once
void
mrcal_stereo_matching_libelas( // output
float* disparity0,
float* disparity1,
// input
const uint8_t* image0,
const uint8_t* image1,
// image dimensions. The stride applies to the
// input only. The output is stored densely
uint32_t width, uint32_t height, uint32_t stride,
// parameters. These are the fields in
// Elas::Elas::parameters. This function provides
// no defaults: eerything must be set
int32_t disparity_min,
int32_t disparity_max,
float support_threshold,
int32_t support_texture,
int32_t candidate_stepsize,
int32_t incon_window_size,
int32_t incon_threshold,
int32_t incon_min_support,
bool add_corners,
int32_t grid_size,
float beta,
float gamma,
float sigma,
float sradius,
int32_t match_texture,
int32_t lr_threshold,
float speckle_sim_threshold,
int32_t speckle_size,
int32_t ipol_gap_width,
bool filter_median,
bool filter_adaptive_mean,
bool postprocess_only_left,
bool subsampling );