├── 3rdparty └── .gitkeep ├── AD-Census-vs2015.sln ├── AD-Census-vs2019.sln ├── AD-Census ├── AD-Census-v15.vcxproj ├── AD-Census-v15.vcxproj.filters ├── AD-Census-v15.vcxproj.user ├── AD-Census-v19.vcxproj ├── AD-Census-v19.vcxproj.user ├── ADCensusStereo.cpp ├── ADCensusStereo.h ├── ReadMe.txt ├── adcensus_types.h ├── adcensus_util.cpp ├── adcensus_util.h ├── cost_computor.cpp ├── cost_computor.h ├── cross_aggregator.cpp ├── cross_aggregator.h ├── main.cpp ├── multistep_refiner.cpp ├── multistep_refiner.h ├── scanline_optimizer.cpp └── scanline_optimizer.h ├── Data ├── Cloth3 │ ├── d_range.txt │ ├── disp1.png │ ├── disp5.png │ ├── view1.png │ └── view5.png ├── Cone │ ├── d_range.txt │ ├── disp2.png │ ├── disp6.png │ ├── im2.png │ └── im6.png ├── Piano │ ├── d_range.txt │ ├── im0.png │ └── im1.png └── Wood2 │ ├── d_range.txt │ ├── disp1.png │ ├── disp5.png │ ├── view1.png │ └── view5.png ├── LICENSE ├── README.md └── doc └── exp └── res ├── cloth-c.png ├── cloth-d.png ├── cone-c.png ├── cone-d.png ├── piano-c.png └── piano-d.png /3rdparty/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/3rdparty/.gitkeep -------------------------------------------------------------------------------- /AD-Census-vs2015.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AD-Census", "AD-Census\AD-Census-v15.vcxproj", "{CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x64.ActiveCfg = Debug|x64 17 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x64.Build.0 = Debug|x64 18 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x86.ActiveCfg = Debug|Win32 19 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x86.Build.0 = Debug|Win32 20 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x64.ActiveCfg = Release|x64 21 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x64.Build.0 = Release|x64 22 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x86.ActiveCfg = Release|Win32 23 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /AD-Census-vs2019.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.28803.202 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AD-Census-v19", "AD-Census\AD-Census-v19.vcxproj", "{CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x64.ActiveCfg = Release|x64 17 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x64.Build.0 = Release|x64 18 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x86.ActiveCfg = Debug|Win32 19 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Debug|x86.Build.0 = Debug|Win32 20 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x64.ActiveCfg = Release|x64 21 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x64.Build.0 = Release|x64 22 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x86.ActiveCfg = Release|Win32 23 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {A546632E-F009-4BA9-A149-5717849F081D} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /AD-Census/AD-Census-v15.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0} 23 | Win32Proj 24 | ADCensus 25 | 8.1 26 | 27 | 28 | 29 | Application 30 | true 31 | v140 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v140 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v140 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v140 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | Use 87 | Level3 88 | Disabled 89 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 90 | true 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | Use 100 | Level3 101 | Disabled 102 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 103 | true 104 | $(SolutionDir)3rdparty\OpenCV\include;$(SolutionDir)3rdparty\OpenCV\include\opencv;$(SolutionDir)3rdparty\OpenCV\include\opencv2;%(AdditionalIncludeDirectories) 105 | 106 | 107 | Console 108 | true 109 | $(SolutionDir)3rdparty\OpenCV\lib;%(AdditionalLibraryDirectories) 110 | 111 | 112 | 113 | 114 | Level3 115 | Use 116 | MaxSpeed 117 | true 118 | true 119 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 120 | true 121 | 122 | 123 | Console 124 | true 125 | true 126 | true 127 | 128 | 129 | 130 | 131 | Level3 132 | Use 133 | MaxSpeed 134 | true 135 | true 136 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 137 | true 138 | $(SolutionDir)3rdparty\OpenCV\include;$(SolutionDir)3rdparty\OpenCV\include\opencv;$(SolutionDir)3rdparty\OpenCV\include\opencv2;%(AdditionalIncludeDirectories) 139 | 140 | 141 | Console 142 | true 143 | true 144 | true 145 | $(SolutionDir)3rdparty\OpenCV\lib;%(AdditionalLibraryDirectories) 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | NotUsing 163 | NotUsing 164 | 165 | 166 | NotUsing 167 | NotUsing 168 | 169 | 170 | NotUsing 171 | NotUsing 172 | 173 | 174 | NotUsing 175 | NotUsing 176 | 177 | 178 | NotUsing 179 | NotUsing 180 | 181 | 182 | NotUsing 183 | NotUsing 184 | 185 | 186 | NotUsing 187 | NotUsing 188 | 189 | 190 | 191 | 192 | 193 | -------------------------------------------------------------------------------- /AD-Census/AD-Census-v15.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | Header Files 23 | 24 | 25 | Header Files 26 | 27 | 28 | Header Files 29 | 30 | 31 | Header Files 32 | 33 | 34 | Header Files 35 | 36 | 37 | Header Files 38 | 39 | 40 | Header Files 41 | 42 | 43 | 44 | 45 | Source Files 46 | 47 | 48 | Source Files 49 | 50 | 51 | Source Files 52 | 53 | 54 | Source Files 55 | 56 | 57 | Source Files 58 | 59 | 60 | Source Files 61 | 62 | 63 | Source Files 64 | 65 | 66 | -------------------------------------------------------------------------------- /AD-Census/AD-Census-v15.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ..\Data\cone\im2.png ..\Data\cone\im6.png 0 64 5 | WindowsLocalDebugger 6 | 7 | 8 | ..\Data\cone\im2.png ..\Data\cone\im6.png 0 64 9 | WindowsLocalDebugger 10 | 11 | 12 | true 13 | 14 | -------------------------------------------------------------------------------- /AD-Census/AD-Census-v19.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {CEAA5598-A29F-4A54-A95F-0864ECB0F4C0} 23 | Win32Proj 24 | ADCensus 25 | 10.0 26 | 27 | 28 | 29 | Application 30 | true 31 | v142 32 | Unicode 33 | 34 | 35 | Application 36 | false 37 | v142 38 | true 39 | Unicode 40 | 41 | 42 | Application 43 | true 44 | v142 45 | Unicode 46 | 47 | 48 | Application 49 | false 50 | v142 51 | true 52 | Unicode 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | true 74 | 75 | 76 | true 77 | 78 | 79 | false 80 | 81 | 82 | false 83 | 84 | 85 | 86 | Use 87 | Level3 88 | Disabled 89 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 90 | true 91 | 92 | 93 | Console 94 | true 95 | 96 | 97 | 98 | 99 | Use 100 | Level3 101 | Disabled 102 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 103 | true 104 | $(SolutionDir)3rdparty\OpenCV\include;$(SolutionDir)3rdparty\OpenCV\include\opencv;$(SolutionDir)3rdparty\OpenCV\include\opencv2;%(AdditionalIncludeDirectories) 105 | 106 | 107 | Console 108 | true 109 | $(SolutionDir)3rdparty\OpenCV\lib;%(AdditionalLibraryDirectories) 110 | 111 | 112 | 113 | 114 | Level3 115 | Use 116 | MaxSpeed 117 | true 118 | true 119 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 120 | true 121 | 122 | 123 | Console 124 | true 125 | true 126 | true 127 | 128 | 129 | 130 | 131 | Level3 132 | Use 133 | MaxSpeed 134 | true 135 | true 136 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 137 | true 138 | $(SolutionDir)3rdparty\OpenCV\include;$(SolutionDir)3rdparty\OpenCV\include\opencv;$(SolutionDir)3rdparty\OpenCV\include\opencv2;%(AdditionalIncludeDirectories) 139 | 140 | 141 | Console 142 | true 143 | true 144 | true 145 | $(SolutionDir)3rdparty\OpenCV\lib;%(AdditionalLibraryDirectories) 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | NotUsing 163 | NotUsing 164 | 165 | 166 | NotUsing 167 | NotUsing 168 | 169 | 170 | NotUsing 171 | NotUsing 172 | 173 | 174 | NotUsing 175 | NotUsing 176 | 177 | 178 | NotUsing 179 | NotUsing 180 | 181 | 182 | NotUsing 183 | NotUsing 184 | 185 | 186 | NotUsing 187 | NotUsing 188 | 189 | 190 | 191 | 192 | 193 | -------------------------------------------------------------------------------- /AD-Census/AD-Census-v19.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ..\Data\cone\im2.png ..\Data\cone\im6.png 0 64 5 | WindowsLocalDebugger 6 | 7 | 8 | ..\Data\cone\im2.png ..\Data\cone\im6.png 0 64 9 | WindowsLocalDebugger 10 | 11 | -------------------------------------------------------------------------------- /AD-Census/ADCensusStereo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/ADCensusStereo.cpp -------------------------------------------------------------------------------- /AD-Census/ADCensusStereo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/ADCensusStereo.h -------------------------------------------------------------------------------- /AD-Census/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | CONSOLE APPLICATION : AD-Census Project Overview 3 | ======================================================================== 4 | 5 | AppWizard has created this AD-Census application for you. 6 | 7 | This file contains a summary of what you will find in each of the files that 8 | make up your AD-Census application. 9 | 10 | 11 | AD-Census.vcxproj 12 | This is the main project file for VC++ projects generated using an Application Wizard. 13 | It contains information about the version of Visual C++ that generated the file, and 14 | information about the platforms, configurations, and project features selected with the 15 | Application Wizard. 16 | 17 | AD-Census.vcxproj.filters 18 | This is the filters file for VC++ projects generated using an Application Wizard. 19 | It contains information about the association between the files in your project 20 | and the filters. This association is used in the IDE to show grouping of files with 21 | similar extensions under a specific node (for e.g. ".cpp" files are associated with the 22 | "Source Files" filter). 23 | 24 | AD-Census.cpp 25 | This is the main application source file. 26 | 27 | ///////////////////////////////////////////////////////////////////////////// 28 | Other standard files: 29 | 30 | StdAfx.h, StdAfx.cpp 31 | These files are used to build a precompiled header (PCH) file 32 | named AD-Census.pch and a precompiled types file named StdAfx.obj. 33 | 34 | ///////////////////////////////////////////////////////////////////////////// 35 | Other notes: 36 | 37 | AppWizard uses "TODO:" comments to indicate parts of the source code you 38 | should add to or customize. 39 | 40 | ///////////////////////////////////////////////////////////////////////////// 41 | -------------------------------------------------------------------------------- /AD-Census/adcensus_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/adcensus_types.h -------------------------------------------------------------------------------- /AD-Census/adcensus_util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/adcensus_util.cpp -------------------------------------------------------------------------------- /AD-Census/adcensus_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/adcensus_util.h -------------------------------------------------------------------------------- /AD-Census/cost_computor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/cost_computor.cpp -------------------------------------------------------------------------------- /AD-Census/cost_computor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/cost_computor.h -------------------------------------------------------------------------------- /AD-Census/cross_aggregator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/cross_aggregator.cpp -------------------------------------------------------------------------------- /AD-Census/cross_aggregator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/cross_aggregator.h -------------------------------------------------------------------------------- /AD-Census/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/main.cpp -------------------------------------------------------------------------------- /AD-Census/multistep_refiner.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/multistep_refiner.cpp -------------------------------------------------------------------------------- /AD-Census/multistep_refiner.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/multistep_refiner.h -------------------------------------------------------------------------------- /AD-Census/scanline_optimizer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/scanline_optimizer.cpp -------------------------------------------------------------------------------- /AD-Census/scanline_optimizer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/AD-Census/scanline_optimizer.h -------------------------------------------------------------------------------- /Data/Cloth3/d_range.txt: -------------------------------------------------------------------------------- 1 | dmin=0 2 | dmax=128 -------------------------------------------------------------------------------- /Data/Cloth3/disp1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cloth3/disp1.png -------------------------------------------------------------------------------- /Data/Cloth3/disp5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cloth3/disp5.png -------------------------------------------------------------------------------- /Data/Cloth3/view1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cloth3/view1.png -------------------------------------------------------------------------------- /Data/Cloth3/view5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cloth3/view5.png -------------------------------------------------------------------------------- /Data/Cone/d_range.txt: -------------------------------------------------------------------------------- 1 | dmin=0 2 | dmax=64 -------------------------------------------------------------------------------- /Data/Cone/disp2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cone/disp2.png -------------------------------------------------------------------------------- /Data/Cone/disp6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cone/disp6.png -------------------------------------------------------------------------------- /Data/Cone/im2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cone/im2.png -------------------------------------------------------------------------------- /Data/Cone/im6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Cone/im6.png -------------------------------------------------------------------------------- /Data/Piano/d_range.txt: -------------------------------------------------------------------------------- 1 | dmin=0 2 | dmax=64 -------------------------------------------------------------------------------- /Data/Piano/im0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Piano/im0.png -------------------------------------------------------------------------------- /Data/Piano/im1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Piano/im1.png -------------------------------------------------------------------------------- /Data/Wood2/d_range.txt: -------------------------------------------------------------------------------- 1 | dmin=0 2 | dmax=128 -------------------------------------------------------------------------------- /Data/Wood2/disp1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Wood2/disp1.png -------------------------------------------------------------------------------- /Data/Wood2/disp5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Wood2/disp5.png -------------------------------------------------------------------------------- /Data/Wood2/view1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Wood2/view1.png -------------------------------------------------------------------------------- /Data/Wood2/view5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/Data/Wood2/view5.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Ethan Li 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AD-Census 2 | AD-Census立体匹配算法,中国学者Xing Mei等人研究成果(Respect!),算法效率高、效果出色,适合硬件加速,Intel RealSense D400 Stereo模块算法。完整实现,代码规范,注释清晰,欢迎star! 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | # 环境 26 | windows10 / visual studio 2015&2019 27 |
代码基本没有使用系统api,你可以非常方便的移植到linux,可能需要做极少量的修改 28 | 29 | # 第三方库 30 | opencv310 31 |
32 | 百度网盘连接:https://pan.baidu.com/s/1_WD-KdPyDBazEIim7NU3jA 33 |
34 | 提取码:aab4 35 |

36 | 解压后放将名称为OpenCV的文件夹复制到到3rdparty文件夹下 37 |

若运行时提示缺少opencv_310(d).dll,则在OpenCV文件夹里找到对应的dll文件复制到程序exe所在的目录即可(Opencv\dll\opencv_310(d).dll),带d为debug库,不带d为release库。 38 |

39 | 为便于移植,算法是不依赖任何图像库的,只在算法实验部分调用opencv库读取和显示图像,也可替换成其他图像库 40 | 41 | ## 论文 42 | Mei X , Sun X , Zhou M , et al. On building an accurate stereo matching system on graphics hardware[C]// IEEE International Conference on Computer Vision Workshops. IEEE, 2012. 43 | 44 | ## Github图片不显示的解决办法 45 | 修改hosts 46 | 47 | C:\Windows\System32\drivers\etc\hosts 48 | 49 | 在文件末尾添加: 50 | 51 | ``` cpp 52 | # GitHub Start 53 | 192.30.253.119 gist.github.com 54 | 151.101.184.133 assets-cdn.github.com 55 | 151.101.184.133 raw.githubusercontent.com 56 | 151.101.184.133 gist.githubusercontent.com 57 | 151.101.184.133 cloud.githubusercontent.com 58 | 151.101.184.133 camo.githubusercontent.com 59 | 151.101.184.133 avatars0.githubusercontent.com 60 | 151.101.184.133 avatars1.githubusercontent.com 61 | 151.101.184.133 avatars2.githubusercontent.com 62 | 151.101.184.133 avatars3.githubusercontent.com 63 | 151.101.184.133 avatars4.githubusercontent.com 64 | 151.101.184.133 avatars5.githubusercontent.com 65 | 151.101.184.133 avatars6.githubusercontent.com 66 | 151.101.184.133 avatars7.githubusercontent.com 67 | 151.101.184.133 avatars8.githubusercontent.com 68 | # GitHub End 69 | 70 | 71 | ``` 72 | -------------------------------------------------------------------------------- /doc/exp/res/cloth-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/doc/exp/res/cloth-c.png -------------------------------------------------------------------------------- /doc/exp/res/cloth-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/doc/exp/res/cloth-d.png -------------------------------------------------------------------------------- /doc/exp/res/cone-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/doc/exp/res/cone-c.png -------------------------------------------------------------------------------- /doc/exp/res/cone-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/doc/exp/res/cone-d.png -------------------------------------------------------------------------------- /doc/exp/res/piano-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/doc/exp/res/piano-c.png -------------------------------------------------------------------------------- /doc/exp/res/piano-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethan-li-coding/AD-Census/cd9c1812e0b08f94fdb6fed05ad225475a88c33d/doc/exp/res/piano-d.png --------------------------------------------------------------------------------