Commit Graph

39 Commits

Author SHA1 Message Date
Christoph Rackwitz
a64b51dd94
Merge pull request #23108 from crackwitz:issue-23107
Usage of imread(): magic number 0, unchecked result

* docs: rewrite 0/1 to IMREAD_GRAYSCALE/IMREAD_COLOR in imread()

* samples, apps: rewrite 0/1 to IMREAD_GRAYSCALE/IMREAD_COLOR in imread()

* tests: rewrite 0/1 to IMREAD_GRAYSCALE/IMREAD_COLOR in imread()

* doc/py_tutorials: check imread() result
2023-01-09 09:55:31 +00:00
catree
837e41f9a7 Add -ws flag for cornerSubPix params (backported from 4.x).
Add flags to set the camera intrinsic parameters as an initial guess (can allow converging to the correct camera intrinsic parameters).
Add -imshow-scale flag to resize the image when displaying the results.
Add -enable-k3 flag to enable or disable the estimation of the K3 distortion coefficient.
2022-08-29 23:55:00 +02:00
MoonChasing
98db891851 using argv[0] represent binary executable files' name in help() function
in sample codes instead of cpp files' name.
2020-02-28 20:36:56 +08:00
Alexander Alekhin
c4c31f5bba samples: use findFile() in "cpp" 2018-11-16 18:08:22 +00:00
StevenPuttemans
6d34d6b47e update samples: waitKey() usage
Original commit is a5f19f7dd6
2016-12-15 15:39:47 +03:00
ValeryTyumen
297808e6b9 Feature #3957 2015-12-17 18:19:39 +03:00
Adil Ibragimov
8a4a1bb018 Several type of formal refactoring:
1. someMatrix.data -> someMatrix.prt()
2. someMatrix.data + someMatrix.step * lineIndex -> someMatrix.ptr( lineIndex )
3. (SomeType*) someMatrix.data -> someMatrix.ptr<SomeType>()
4. someMatrix.data -> !someMatrix.empty() ( or !someMatrix.data -> someMatrix.empty() ) in logical expressions
2014-08-13 15:21:35 +04:00
vbystricky
d58f736935 Split highgui module to videoio and highgui 2014-07-14 23:16:47 +04:00
vbystricky
4286f60387 Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
Andrey Kamaev
e5a33723fc Move C API of opencv_calib3d to separate file 2013-04-11 21:00:17 +04:00
Andrey Kamaev
288a0634c2 Make imgproc.hpp independent from C API 2013-04-08 15:47:28 +04:00
Andrey Kamaev
89356ff16d Move non-CV functionality from core.hpp to separate utility.hpp header 2013-03-20 17:56:06 +04:00
Andrey Kamaev
9944282b09 Fix build with STLPort from NDK r8d 2012-12-22 00:59:56 +04:00
Andrey Kamaev
bd0e0b5800 Merged the trunk r8589:8653 - all changes related to build warnings 2012-06-15 13:04:17 +00:00
Vadim Pisarevsky
4985c1b632 fixed hundreds of warnings from MSVC 2010. 2012-03-16 21:21:04 +00:00
itsyplen
3876cf22e3 reverted samples with new command argument parser. will be continued after OpenCV release. 2011-06-09 12:01:47 +00:00
itsyplen
2e7e6ae84b Update sample: change help and added CommandLineParser using 2011-06-09 08:04:33 +00:00
Ilya Lysenkov
686063689c Fixed #886 2011-05-30 08:01:09 +00:00
Ilya Lysenkov
3474e37037 Fixed #1063 2011-05-30 06:18:52 +00:00
Gary Bradski
975ecaca7d added output camera id if it fails 2011-02-13 04:09:58 +00:00
Ilya Lysenkov
3e43bc579b Modified the calibration sample to work with asymmetric pattern 2011-02-07 07:59:01 +00:00
Ilya Lysenkov
bdf6f0258c Changed the camera calibration sample to support circles' grid pattern 2010-12-21 09:32:14 +00:00
Gary Bradski
3c57612f42 revamped 2010-12-04 08:24:28 +00:00
Vadim Pisarevsky
3fd07809c9 make cv::calibrateCamera, cv::stereoCalibrate and their C counterparts return the standard RMS error. 2010-11-30 10:27:34 +00:00
Vadim Pisarevsky
2b660bf554 added flag to treat input file as a videofile (patch by Ethan Rublee; ticket #392) 2010-11-29 23:16:41 +00:00
Vadim Pisarevsky
1286c1db45 fixed multiple warnings from VS2010. 2010-11-25 16:55:46 +00:00
Gary Bradski
d0d7ba9985 added and moved docs 2010-11-24 01:44:36 +00:00
Ethan Rublee
2e9136259d Adding two samples that deal with FileStorage - useful for creating image lists 2010-11-20 21:37:09 +00:00
Ethan Rublee
9ee954a0c6 Made calibration a bit faster in the absense of a checkboard and trying to fix
a crash with the libv4l capture code
2010-11-01 06:20:36 +00:00
Ethan Rublee
e842a0c816 change int to char so that keys are registered properly, maybe this breaks others though 2010-10-20 18:49:44 +00:00
Vadim Pisarevsky
31dbefc865 added 3-camera rectification and 8-coeff distortion model 2010-09-07 15:38:48 +00:00
Yannick Verdie
3746c48451 Bug in calibration.cpp sample
This was crashing my code:
    for( size_t i = 1; i < imagePoints.size(); i++ )
        objectPoints.push_back(objectPoints[0]);

Changed by:
objectPoints.resize(imagePoints.size(),objectPoints[0]);

Plus clean up on Qt code
2010-08-18 15:35:56 +00:00
Vadim Pisarevsky
9c94a96c40 repaired aspect ratio option; fixed comments 2010-08-03 11:28:39 +00:00
Vadim Pisarevsky
08cba33f9d fixed some more MSVC2010 warnings 2010-07-17 10:35:17 +00:00
Gary Bradski
730de4d8c3 Fixed crash if no chessboard problem 2010-07-14 00:32:35 +00:00
Vadim Pisarevsky
db82906067 fix build with GCC 3.3 on Ubuntu 8.04 2010-07-09 09:09:20 +00:00
Vadim Pisarevsky
4eda856cd5 squareSize renamed to square_size in the output xml/yml 2010-06-24 07:56:57 +00:00
Vadim Pisarevsky
b2244f87ac improved the calibration and select3dobj samples 2010-06-13 19:08:24 +00:00
Vadim Pisarevsky
654d447661 calibration sample rewritten using the C++ API 2010-06-13 03:50:29 +00:00