Ask Your Question
0

getPerspectiveTransform get different result in release and debug mode

asked 2017-04-28 01:34:27 -0500

updated 2017-04-28 03:13:17 -0500

LBerger gravatar image

System information (version)

OpenCV =>2.4.13 Operating System / Platform => Windows 7 32 Bit Compiler => Visual Studio 2013 Detailed description

I found getPerspectiveTransform counld get results from release and debug mode are different, The following is my data:

src:

[346.967, 374.95]
[465.033, 374.95]
[465.033, 444.7]
[346.967, 444.7]

dst:

[0, 0]
[101, 0]
[101, 60]
[0, 60]

release mode result:

[0.8554490168548095, 1.595945597898663e-016, -296.8123008430522;
-2.775557561562891e-017, 0.8602150537634458, -322.5376449092761;
8.239936510889834e-018, 5.204170427930421e-018, 1]

debug mode result:

[0.8554490168548097, 4.371503159461554e-016, -296.8123008430524;
-1.665334536937735e-016, 0.8602150537634464, -322.5376449092763;
4.98732999343332e-018, 1.040834085586084e-017, 1]

Steps to reproduce

C++ code example

Mat transmtx = getPerspectiveTransform(corners, outputCorners);
std::cout<<transmtx <<std::endl;
edit retag flag offensive close merge delete

Comments

please use icon 101010 to indent code and data

LBerger gravatar imageLBerger ( 2017-04-28 03:13:44 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-29 02:49:07 -0500

LBerger gravatar image

google is your friend

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-04-28 01:34:27 -0500

Seen: 63 times

Last updated: Apr 29 '17