├── .gitattributes ├── .gitignore ├── doc └── TILT_IJCV.pdf ├── readme.txt ├── src ├── CMakeLists.txt ├── TILT.cpp ├── test1.cmd ├── test2.cmd └── test3.cmd └── test_images ├── building1.jpg ├── building2.jpg ├── building3.jpg ├── myface.jpg ├── pattern1.jpg └── pisa.jpg /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # ========================= 18 | # Operating System Files 19 | # ========================= 20 | 21 | # OSX 22 | # ========================= 23 | 24 | .DS_Store 25 | .AppleDouble 26 | .LSOverride 27 | 28 | # Icon must end with two \r 29 | Icon 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /doc/TILT_IJCV.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/doc/TILT_IJCV.pdf -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | Проект является CPP портом алгоритма "TILT: Transform Invariant Low-rank Textures". 2 | Сайт авторов: https://people.eecs.berkeley.edu/~yima/matrix-rank/tilt.html 3 | 4 | 5 | Видео работы проекта: http://www.youtube.com/watch?v=rHjhY4ivTBg&feature=youtu.be 6 | 7 | Как потестить: 8 | 1) Запустить программу (test1.cmd - test3.cmd, предварительно поправив пути к изображениям), она загрузит тестовое изображение (здание например (см. строчку 494) ); 9 | 2) Щелкнуть левой кнопкой мыши в левом-верхнем углу начальной рамки, затем в правом-нижнем и нажать любую клавишу; 10 | 3) Начнутся итерации, выравнивающие изображение; 11 | 4) После окончания итераций, в полученную область врисовывается изображение-баннер (например Ваш портрет (строчка 543)). 12 | 13 | Статья-описание, любезно предоставленная mrgloom: http://habrahabr.ru/post/245497/ 14 | 15 | Проект изначально компилировался на VS2010, проверялся на VS2012. 16 | 17 | Зависимости: OpenCV 3.0 18 | 19 | PS: Комментарии на русском, правда в браузере отображаются неправильно. 20 | -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/TILT.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/src/TILT.cpp -------------------------------------------------------------------------------- /src/test1.cmd: -------------------------------------------------------------------------------- 1 | TILT.exe building1.jpg myface.jpg -------------------------------------------------------------------------------- /src/test2.cmd: -------------------------------------------------------------------------------- 1 | TILT.exe building2.jpg myface.jpg -------------------------------------------------------------------------------- /src/test3.cmd: -------------------------------------------------------------------------------- 1 | TILT.exe building3.jpg myface.jpg -------------------------------------------------------------------------------- /test_images/building1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/test_images/building1.jpg -------------------------------------------------------------------------------- /test_images/building2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/test_images/building2.jpg -------------------------------------------------------------------------------- /test_images/building3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/test_images/building3.jpg -------------------------------------------------------------------------------- /test_images/myface.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/test_images/myface.jpg -------------------------------------------------------------------------------- /test_images/pattern1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/test_images/pattern1.jpg -------------------------------------------------------------------------------- /test_images/pisa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Smorodov/TILT-Cpp-port/d97ac19e18a05eda959c9d1096c03fc8b67f8c32/test_images/pisa.jpg --------------------------------------------------------------------------------