2017-06-23 05:15:28 -0600 | asked a question | How can I debug an cv::imencode error ? I'm using a ZED Stereo Camera together with ROS on a Jetson TX1 (which uses a precompiled optimized OpenCV 2.4 ) I would like to use the compressed image transport functionality of ROS. But when I try to access such a compressed image, my programm fails. Debugging with comments reveiled, that the program crashes when calling this OpenCV function: at this location. Running the program in debug mode shows the following error: Because on the Jetson I use precompiled OpenCV libraries, I first would like to refrain from starting to put debugging comments into OpenCV code. Can I maybe control the input arguments, if they are right? What would be typical faulty inputs? (if you are interest to know more about the ROS side of this, see also my issue on github here ) |
2017-04-12 07:31:15 -0600 | received badge | ● Enthusiast |
2017-04-11 01:40:01 -0600 | commented answer | Why are the two images equal? Thank you, matman. I had to think a little bit, but then I understood your answer. For other people having a similar issue I try to rephrase it: By using push_back() the matrix header is stored in the two vector elements. The matrix header is (beside other stuff, see link) a pointer to the matrix data. So in the end, the images-vector is just a vector of two pointers pointing to the same matrix, img1, which at the end of the second loop is the secondly taken picture. |
2017-04-07 12:57:33 -0600 | asked a question | Why are the two images equal? in my program, main calls a function which takes two pictures with a USB camera and writes them into a vector passed by reference to it. Due to an error I'm unable to find (for 2 days now...) the two images written into the vector are identical after I return to main (I test this with the function "equal(...)"), even if they should not be the same, as they were taken with a wait time in between, and I'm waving in front of the camera. Can some of you code angels spot an error I did? The equal() function is not the problem, I have tested it thoroughly. Thank you a lot in advance for your help. |
2017-03-31 04:22:26 -0600 | asked a question | How is result of cornerSubPix() written into pointBuf? In the camera calibration example (link , part 3. Find the pattern in the current input ), the presence of chessboard corners is checked detected with the function findChessboardCorners() (link to function doc) and latter detected with higher precision with cornerSubPix() (link to function doc). What I don't understand is how the corner positions are written into pointBuf, as neither when passed to findChessboardCorners() nor when passed to the latter used function cornerSubPix() this vector of type vector < Point2f> is passed by reference. Thank you in advance for your answer. |
2017-03-30 03:13:18 -0600 | marked best answer | What means "Returns the specified element of the top-level mapping"? In the camera calibration tutorial (link: http:// docs.opencv.org/2.4/doc/tutorials/calib3d/ camera_calibration/camera_calibration.html# ), in part 1. Read the Settings) there is the line: which I don't understand. In the reference to the class FileStorage, of which fs is a member, [ ] is overloaded by: which is described by
Thank you in advance for your answers. |