00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 config_description = [{'srcline': 13, 'description': 'Normalization window size, pixels', 'max': 255, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'prefilter_size', 'edit_method': '', 'default': 9, 'level': 0, 'min': 5, 'type': 'int'}, {'srcline': 14, 'description': 'Bound on normalized pixel values', 'max': 63, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'prefilter_cap', 'edit_method': '', 'default': 31, 'level': 0, 'min': 1, 'type': 'int'}, {'srcline': 17, 'description': 'SAD correlation window width, pixels', 'max': 255, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'correlation_window_size', 'edit_method': '', 'default': 15, 'level': 0, 'min': 5, 'type': 'int'}, {'srcline': 18, 'description': 'Disparity to begin search at, pixels (may be negative)', 'max': 128, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'min_disparity', 'edit_method': '', 'default': 0, 'level': 0, 'min': -128, 'type': 'int'}, {'srcline': 19, 'description': 'Number of disparities to search, pixels', 'max': 128, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'disparity_range', 'edit_method': '', 'default': 64, 'level': 0, 'min': 32, 'type': 'int'}, {'srcline': 24, 'description': 'Filter out if best match does not sufficiently exceed the next-best match', 'max': 100.0, 'cconsttype': 'const double', 'ctype': 'double', 'srcfile': '../cfg/Disparity.cfg', 'name': 'uniqueness_ratio', 'edit_method': '', 'default': 15.0, 'level': 0, 'min': 0.0, 'type': 'double'}, {'srcline': 25, 'description': 'Filter out if SAD window response does not exceed texture threshold', 'max': 10000, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'texture_threshold', 'edit_method': '', 'default': 10, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 26, 'description': 'Reject regions smaller than this size, pixels', 'max': 1000, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'speckle_size', 'edit_method': '', 'default': 100, 'level': 0, 'min': 0, 'type': 'int'}, {'srcline': 27, 'description': 'Max allowed difference between detected disparities', 'max': 31, 'cconsttype': 'const int', 'ctype': 'int', 'srcfile': '../cfg/Disparity.cfg', 'name': 'speckle_range', 'edit_method': '', 'default': 4, 'level': 0, 'min': 0, 'type': 'int'}]
00044
00045 min = {}
00046 max = {}
00047 defaults = {}
00048 level = {}
00049 type = {}
00050 all_level = 0
00051
00052 for param in config_description:
00053 min[param['name']] = param['min']
00054 max[param['name']] = param['max']
00055 defaults[param['name']] = param['default']
00056 level[param['name']] = param['level']
00057 type[param['name']] = param['type']
00058 all_level = all_level | param['level']
00059