opencv_binding_generator/settings/
func_exclude.rs1use std::collections::HashSet;
2
3use crate::SupportedModule;
4
5pub type FuncExclude = HashSet<&'static str>;
6
7pub fn func_exclude_factory(module: SupportedModule) -> FuncExclude {
8 match module {
9 SupportedModule::Core => core_factory(),
10 SupportedModule::CudaImgProc => cudaimgproc_factory(),
11 SupportedModule::Dnn => dnn_factory(),
12 SupportedModule::Gapi => gapi_factory(),
13 SupportedModule::Hdf => hdf_factory(),
14 SupportedModule::ImgProc => imgproc_factory(),
15 SupportedModule::ObjDetect => objdetect_factory(),
16 SupportedModule::OptFlow => optflow_factory(),
17 SupportedModule::Stitching => stitching_factory(),
18 SupportedModule::SurfaceMatching => surface_matching_factory(),
19 SupportedModule::Tracking => tracking_factory(),
20 _ => FuncExclude::default(),
21 }
22}
23
24fn core_factory() -> FuncExclude {
25 HashSet::from([
26 "cv_AsyncArray__getImpl_const",
27 "cv_Mat_Mat_const_MatR_const_RangeX", "cv_Mat_copySize_const_MatR", "cv_Mat_operator___const_const_RangeX", "cv_Mat_push_back__const_voidX", "cv_Mat_operatorST_const_MatR", "cv_UMat_UMat_const_UMatR_const_RangeX", "cv_UMat_copySize_const_UMatR", "cv_UMat_operator___const_const_RangeX", "cv_RNG_MT19937_operator__", "cv_addImpl_int_const_charX",
37 "cv_calcCovarMatrix_const_MatX_int_MatR_MatR_int_int", "cv_cv_abs_short",
39 "cv_detail_depthToString__int", "cv_detail_typeToString__int", "cv_fastFree_voidX", "cv_fastMalloc_size_t", "cv_format_const_charX", "cv_hconcat_const_MatX_size_t_const__OutputArrayR", "cv_merge_const_MatX_size_t_const__OutputArrayR", "cv_mixChannels_const_MatX_size_t_MatX_size_t_const_intX_size_t", "cv_ocl_ProgramSource_ProgramSource_const_charX", "cv_setImpl_int",
49 "cv_setUseCollection_bool",
50 "cv_useCollection",
51 "cv_vconcat_const_MatX_size_t_const__OutputArrayR", "cv_Mat_Mat_MatRR", "cv_MatConstIterator_MatConstIterator_const_MatX_const_intX",
55 "cv_SparseMatConstIterator_operatorSS",
56 "cv_SparseMatIterator_SparseMatIterator_SparseMatX_const_intX",
57 "cv__OutputArray__OutputArray_const_vectorLGpuMatGR",
58 "cv_cuda_convertFp16_const__InputArrayR_const__OutputArrayR_StreamR",
59 "cv_getImpl_vectorLintGR_vectorLStringGR",
60 ])
61}
62
63fn cudaimgproc_factory() -> FuncExclude {
64 HashSet::from([
65 "cv_cuda_histEven_const__InputArrayR_GpuMatXX_intXX_intXX_intXX_StreamR", "cv_cuda_histRange_const__InputArrayR_GpuMatXX_const_GpuMatXX_StreamR", ])
68}
69
70fn dnn_factory() -> FuncExclude {
71 HashSet::from([
72 "cv_dnn_DictValue_DictValue_const_StringR", "cv_dnn_Layer_finalize_const_vectorLMatXGR_vectorLMatGR", "cv_dnn_Model_operator_cv_dnn_Net_const", "cv_dnn_BackendNode_BackendNode_int",
77 ])
78}
79
80fn gapi_factory() -> FuncExclude {
81 HashSet::from([
82 "cv_MediaFrame_IAdapter_access_Access", "cv_MediaFrame_access_const_Access", "cv_RMat_Adapter_access_Access", "cv_RMat_IAdapter_access_Access", "cv_RMat_access_const_Access", ])
88}
89
90fn hdf_factory() -> FuncExclude {
91 HashSet::from([
92 "cv_hdf_HDF5_dscreate_const_const_int_const_int_const_int_const_StringR_const_int_const_intX", "cv_hdf_HDF5_dsinsert_const_const__InputArrayR_const_StringR_const_intX", "cv_hdf_HDF5_dsinsert_const_const__InputArrayR_const_StringR_const_intX_const_intX", "cv_hdf_HDF5_dsread_const_const__OutputArrayR_const_StringR_const_intX", "cv_hdf_HDF5_dsread_const_const__OutputArrayR_const_StringR_const_intX_const_intX", "cv_hdf_HDF5_dswrite_const_const__InputArrayR_const_StringR_const_intX", "cv_hdf_HDF5_dswrite_const_const__InputArrayR_const_StringR_const_intX_const_intX", ])
100}
101
102fn imgproc_factory() -> FuncExclude {
103 HashSet::from([
104 "cv_calcBackProject_const_MatX_int_const_intX_const_SparseMatR_const__OutputArrayR_const_floatXX_double_bool", "cv_calcBackProject_const_MatX_int_const_intX_const__InputArrayR_const__OutputArrayR_const_floatXX_double_bool", "cv_calcHist_const_MatX_int_const_intX_const__InputArrayR_SparseMatR_int_const_intX_const_floatXX_bool_bool", "cv_calcHist_const_MatX_int_const_intX_const__InputArrayR_const__OutputArrayR_int_const_intX_const_floatXX_bool_bool", "cv_fillConvexPoly_MatR_const_PointX_int_const_ScalarR_int_int", "cv_fillConvexPoly_const__InputOutputArrayR_const_PointX_int_const_ScalarR_int_int",
110 "cv_fillPoly_MatR_const_PointXX_const_intX_int_const_ScalarR_int_int_Point", "cv_fillPoly_const__InputOutputArrayR_const_PointXX_const_intX_int_const_ScalarR_int_int_Point",
112 "cv_polylines_MatR_const_PointXX_const_intX_int_bool_const_ScalarR_int_int_int", "cv_polylines_const__InputOutputArrayR_const_PointXX_const_intX_int_bool_const_ScalarR_int_int_int",
114 ])
115}
116
117fn objdetect_factory() -> FuncExclude {
118 HashSet::from([
119 "cv_QRCodeDetector_detectAndDecodeMulti_const_const__InputArrayR_vectorLstringGR_const__OutputArrayR_const__OutputArrayR", ])
121}
122
123fn optflow_factory() -> FuncExclude {
124 HashSet::from([
125 "cv_optflow_GPCTrainingSamples_operator_cv_optflow_GPCSamplesVector", ])
127}
128
129fn stitching_factory() -> FuncExclude {
130 HashSet::from([
131 "cv_createStitcherScans_bool",
133 "cv_createStitcher_bool",
134 ])
135}
136
137fn surface_matching_factory() -> FuncExclude {
138 HashSet::from([
139 "cv_ppf_match_3d_PPF3DDetector_read_const_FileNodeR",
141 "cv_ppf_match_3d_PPF3DDetector_write_const_FileStorageR",
142 ])
143}
144
145fn tracking_factory() -> FuncExclude {
146 HashSet::from([
147 "cv_CvFeatureParams_CvFeatureParams",
149 "cv_CvFeatureParams_create_FeatureType",
150 "cv_CvFeatureParams_create_int",
151 "cv_CvHaarEvaluator_FeatureHaar_FeatureHaar_Size",
152 "cv_CvHaarEvaluator_FeatureHaar_eval_const_const_MatR_Rect_floatX",
153 "cv_CvHaarEvaluator_FeatureHaar_getAreas_const",
154 "cv_CvHaarEvaluator_FeatureHaar_getInitMean_const",
155 "cv_CvHaarEvaluator_FeatureHaar_getInitSigma_const",
156 "cv_CvHaarEvaluator_FeatureHaar_getNumAreas",
157 "cv_CvHaarEvaluator_FeatureHaar_getWeights_const",
158 "cv_CvHaarEvaluator_getFeatures_const",
159 "cv_CvHaarEvaluator_setWinSize_Size",
160 "cv_CvHaarEvaluator_setWinSize_const",
161 "cv_CvHaarEvaluator_writeFeature_const_FileStorageR",
162 "cv_SparseMatConstIterator_operatorSS",
163 "cv__OutputArray__OutputArray_const_vectorLGpuMatGR",
164 ])
165}