stereo-calibration
stereo-calibration copied to clipboard
Added visualize.cpp to visualize chessboard corners and updated CMakeLists.txt accordingly…
Added visualize.cpp to visualize chessboard corners and updated CMakeLists.txt accordingly. Please review the changes made @sourishg
Hi @BarunKGP - you don't need to create an extra file visualize.cpp to solve this issue. Just incorporate your visualization code in calib_intrinsic.cpp.
@sourishg , I've updated calib_stereo.cpp in the latest commit. It now contains code to visualize the stereo pair if both left and right images are found.
Hi @BarunKGP, great. Here are some of views:
- To enable the visualization, please use some other popt variable than
v, as it is already used forrightcalib_fileoption. - Use
POPT_ARG_NONEas the type of your variable as it does not need an argument. Here is an excerpt from popt documentations that might help you:
If the argInfo argument type is POPT_ARG_NONE, the popt library will set arg to 1 if the option is present on the command line. You should pass a pointer to an int if you want this set for you.
imshow, would also need awaitKey(0)after it for the image to be actually displayed. However, it would also need the user to press a key after every frame. You can find out a way to make it more user friendly.
@BarunKGP please update the PR as requested by @ManashRaja
Yes, sure! I'm working on it. Will update it soon.