berak
405e820fe1
Update contrast_preserve.hpp
...
fix a build warning:
```
C:\Slave\workspace\precommit\windows10\opencv\modules\photo\src\contrast_preserve.hpp(289): warning C4244: '=': conversion from 'double' to '_Tp', possible loss of data
with
[
_Tp=float
]
C:\Slave\workspace\precommit\windows10\opencv\modules\photo\src\contrast_preserve.hpp(361): warning C4244: '=': conversion from 'double' to '_Tp', possible loss of data
with
[
_Tp=float
]
```
(from https://build.opencv.org.cn/job/precommit/job/windows10/1633/console )
4 years ago
Alexander Smorkalov
57da381ae3
Increased Photo_CalibrateDebevec.regression test tolerance to pass on arm64 with gcc 9.3.
4 years ago
Alexander Alekhin
f0ffc52435
fix files permissions
5 years ago
Tomoaki Teshima
4e75f31c55
fix test failure on Jetson Nano/TX1/TX2
5 years ago
sajarindider
4b93820880
Fixed small inefficiency in seamless clone init
5 years ago
Suleyman TURKMEN
eff514f8bb
Update seamless_cloning.cpp
5 years ago
Maksim Shabunin
f3aab47f94
Assorted documentation fixes
...
* removed private flann documentation
* common tutorial images moved to doc/images
* grouping issues
5 years ago
Suleyman TURKMEN
a1e96a7deb
Update seamless_cloning.cpp
5 years ago
arnaudbrejeon
e8e020ffb7
Add test
6 years ago
arnaudbrejeon
e9b8571afc
Fix bug
6 years ago
LaurentBerger
9e94212eac
Solves bug 13853
6 years ago
Suleyman TURKMEN
9be8ab06ed
Update photo.hpp
6 years ago
Alexander Alekhin
742f22c09b
photo: move TonemapDurand to opencv_contrib
6 years ago
Suleyman TURKMEN
30597e5c98
Update seamless_cloning.cpp
6 years ago
Suleyman TURKMEN
6d5f7b72c0
Update seamless_cloning.cpp
6 years ago
Hamdi Sahloul
5d54def264
Add semicolons after `CV_INSTRUMENT` macros
6 years ago
cyy
286c2c236b
Merge pull request #12458 from DEEPIR:3.4
...
* may be an typo fix
* remove identical branch,may be paste error
* add parentheses around macro parameter
* simplify if condition
* check malloc fail
* change the condition of branch removed by commit 3041502861
6 years ago
Vadim Pisarevsky
54279523a3
Merge pull request #12437 from vpisarev:avx2_fixes
...
* trying to fix the custom AVX2 builder test failures (false alarms)
* fixed compile error with CPU_BASELINE=AVX2 on x86; raised tolerance thresholds in a couple of tests
* fixed compile error with CPU_BASELINE=AVX2 on x86; raised tolerance thresholds in a couple of tests
* fixed compile error with CPU_BASELINE=AVX2 on x86; raised tolerance thresholds in a couple of tests
* seemingly disabled false alarm warning in surf.cpp; increased tolerance thresholds in the tests for SolvePnP and in DNN/ENet
6 years ago
Alexander Alekhin
8a3c394d6a
don't use constructors for C API structures
6 years ago
Suleyman TURKMEN
c61bc3a0cb
Update documentation and samples
6 years ago
Suleyman TURKMEN
860ae77ec9
Update seamless_cloning
6 years ago
yom
fb2b26c419
photo: Decolor corrections
...
* Keep image aspect ratio in resize called in grad_system and
weak_order
* Bug correction in loop inside Decolor::gradvector
6 years ago
berak
f49f6d52b4
photo: avoid resizing a const Mat in decolor()
6 years ago
Maksim Shabunin
1da46fe6fb
Fixed issues found by static analysis (mostly DBZ)
6 years ago
Alexander Alekhin
5e2c112697
photo: remove redundant broken check
...
`dest(roi_d)` operation contains similar check inside.
7 years ago
Alexander Alekhin
b3ff29fcf5
avoid copyTo(outputarray.getMat()) pattern
...
- leads to errors due 'const' modifier of getMat() method
- may be non-optimal with non-CPU data storage
7 years ago
Alexander Alekhin
491e3627b6
photo: initialize cos() table with double type
...
This avoids MSVC 19.14.26428.1 to call vectorized __vdecl_cosf4() function with less precision.
7 years ago
Alexander Alekhin
1983991d2f
photo(test): update test checks
...
- allow 5% of changed pixels with intensity difference <= 1
7 years ago
Sayed Adel
115b10ed32
photo:ppc fix MergeRobertson test
7 years ago
Vitaly Tuzov
eb2c9f1519
Fixed mask reduction in seamless_clone
7 years ago
Alexander Alekhin
e741b71dac
photo: apply CV_OVERRIDE/CV_FINAL
7 years ago
shimat
5bf7f09ac1
Merge pull request #11035 from shimat:refactoring_decolor
...
Refactor decolor (#11035 )
* decolor: modernize deprecated headers (math.h -> cmath)
* refactor contrast_preserve.cpp
* refactor contrast_preserve.hpp (add static/const)
* refactor contrast_preserve.hpp (join assignment and declaration)
* refactor contrast_preserve.hpp (format)
* refactor test_decolor.cpp (indent)
* refactor contrast_preserve.hpp (const)
* contrast_preserve.hpp : optimize by minMaxLoc
* fix trailing-whitespace
* fix warning C4267 on VC++ x64
(conversion from 'size_t' to 'int', possible loss of data)
* use cvRound instead of round_num
* decrease indentation of test_decolor.cpp
* remove pow() to optimize
* remove redundant Mat initialization
7 years ago
shimat
21d9c47bd0
Optimize decolor in photo ( #10997 )
...
* optimized cv::decolor by removing vector.push_back
* restored CV_INSTRUMENT_REGION() and original indent
* fix build warnings in contrast_preserve.hpp
* undo refactoring contrast_preserve.cpp/hpp
7 years ago
cDc
667f5b655a
Merge pull request #10933 from cdcseacave:clean_npr
...
* clean npr functions of useless initializations (speed-up)
* photo: remove unnecessary code
7 years ago
luz.paz
e805a55a5b
Misc. modules/ typos (cont.)
...
Found via `codespell`
7 years ago
Alexander Alekhin
4a297a2443
ts: refactor OpenCV tests
...
- removed tr1 usage (dropped in C++17)
- moved includes of vector/map/iostream/limits into ts.hpp
- require opencv_test + anonymous namespace (added compile check)
- fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions
- added missing license headers
7 years ago
Vitaly Tuzov
e5313246a7
Reverted calls to linear resize back to generic version for floating point matrices
7 years ago
Vitaly Tuzov
51cb56ef2c
Implementation of bit-exact resize. Internal calls to linear resize updated to use bit-exact version. ( #9468 )
7 years ago
stalin18
d343a58580
removed unnecessary line
7 years ago
stalin18
ed3d2cd122
fixed unnecessary reconstruction in seamlessclone
...
fixed unnecessary reconstruction in seamlessclone by using only the
required rectangular area in input images
7 years ago
Maksim Shabunin
248e2c7d47
Fixed some issues found by static analysis
7 years ago
Alexander Alekhin
9ca39821c8
core: divUp function
7 years ago
Suleyman TURKMEN
89480801b8
some improvements on tutorials
7 years ago
Tomoaki Teshima
e63d628677
remove some rand functions
...
* make test more reproducible
8 years ago
Alexander Alekhin
1ff6c758ec
photo: crash workaround for MSVC 2015 32-bit
8 years ago
Rostislav Vasilikhin
70b984434d
RGB2Lab_f and trilinear interpolation code are in separate branch; cubeRoot(x) instead of std::pow(x, 1.f/3.f)
...
file with internal accuracy&speed tests moved to lab_tetra branch
8 years ago
Vladislav Sovrasov
2a2a1dc5b4
Get rid of OPENCV_NOSTL definition
8 years ago
Tony Lian
c8783f3e23
Merge pull request #9075 from TonyLianLong:master
...
Remove unnecessary Non-ASCII characters from source code (#9075 )
* Remove unnecessary Non-ASCII characters from source code
Remove unnecessary Non-ASCII characters and replace them with ASCII
characters
* Remove dashes in the @param statement
Remove dashes and place single space in the @param statement to keep
coding style
* misc: more fixes for non-ASCII symbols
* misc: fix non-ASCII symbol in CMake file
8 years ago
Maksim Shabunin
1f23202ad8
Issues found by static analysis (5th round)
8 years ago
Maksim Shabunin
e0393f8557
Fixed some issues found by static analysis (4th round)
8 years ago