So I am very new to OpenCV (2.1), so please keep that in mind.
因此,我设法校准我使用的廉价网络照相机(wide angle查封),使用校对校准方法得出内在和扭曲的系数。
I then have no trouble feeding these values back in and producing image maps, which I then apply to a video feed to correct the incoming images.
I run into an issue however. I know when it is warping/correcting the image, it creates several skewed sections, and then formats the image to crop out any black areas. My question then is can I view the complete warped image, including some regions that have black areas? Below is an example of the black regions with skewed sections I was trying to convey if my terminology was off:
An image better conveying the regions I am talking about can be found here! This image was discovered in this post.
Currently: The cvRemap() returns basically the yellow box in the image linked above, but I want to see the whole image as there is relevant data I am looking to get out of it.
www.un.org/Depts/DGACM/index_spanish.htm 我曾尝试过:。 将比例转换到图像图,以适应完整的形象(包括扩展部分)
CvMat *intrinsic = (CvMat*)cvLoad( "Intrinsics.xml" );
CvMat *distortion = (CvMat*)cvLoad( "Distortion.xml" );
cvInitUndistortMap( intrinsic, distortion, mapx, mapy );
cvConvertScale(mapx, mapx, 1.25, -shift_x); // Some sort of scale conversion
cvConvertScale(mapy, mapy, 1.25, -shift_y); // applied to the image map
cvRemap(distorted,undistorted,mapx,mapy);
我认为,当我正确调整了X/y的转变(gues/检查)时,这种变数就是对图象的曲解,使更正无用。 这里可能有一些数项内容,但我并没有正确理解/理解。
是否有任何其他建议解决这一问题,或我可能做什么错? 我也试图撰写我自己的法典,以纠正歪曲的问题,但我要说的是,开放世界委员会已经知道如何这样做。