asymmetric circle grid camera calibration error "OpenCV Error: Bad argument (Unknown array type) in cvarrToMat"

asked 2015-01-13 11:26:00 -0500

palumbs gravatar image

updated 2015-01-13 11:56:15 -0500

I tried to calibrate a camera with an asymmetric circle grid but none of the photos looked like recognized and after 5 or 6 photos running in the window "Image viewer" has appeared the error "OpenCV Error: Bad argument (Unknown array type) in cvarrToMat". Any idea on the problem? I'm using the .cpp file of "samples" folder of opencv downloadable here link text, the defaul.xml file i edited is this <?xml version="1.0"?> <opencv_storage> <Settings> <BoardSize_Width>13</BoardSize_Width> <BoardSize_Height>8</BoardSize_Height> <Square_Size>7</Square_Size> <Calibrate_Pattern>"ASYMMETRIC_CIRCLES_GRID"</Calibrate_Pattern> <Input>"C:/images/CameraCalibration/VID5.xml"</Input> <Input_FlipAroundHorizontalAxis>0</Input_FlipAroundHorizontalAxis> <Input_Delay>1</Input_Delay> <Calibrate_NrOfFrameToUse>25</Calibrate_NrOfFrameToUse> <Calibrate_FixAspectRatio>0</Calibrate_FixAspectRatio> <Calibrate_AssumeZeroTangentialDistortion>0</Calibrate_AssumeZeroTangentialDistortion> <Calibrate_FixPrincipalPointAtTheCenter>0</Calibrate_FixPrincipalPointAtTheCenter> <Write_outputFileName>"out_camera_data.xml"</Write_outputFileName> <Write_DetectedFeaturePoints>1</Write_DetectedFeaturePoints> <Write_extrinsicParameters>1</Write_extrinsicParameters> <Show_UndistortedImage>1</Show_UndistortedImage> </Settings> </opencv_storage>

edit retag flag offensive close merge delete

Comments

code, please.

berak gravatar imageberak ( 2015-01-13 11:28:27 -0500 )edit

"code, please."

OpenCV Error: Bad argument (unknown array type) in cv::cvarrToMat, file C:\builds\2_4_PackSlave-win32-vc12-shared\opencv\modules\core\src\matrix.cpp, line 698

palumbs gravatar imagepalumbs ( 2015-01-13 11:38:04 -0500 )edit
1

^^ your code, not the opencv library one. ( please append that to your question)

(you probably fed something invalid somewhere)

berak gravatar imageberak ( 2015-01-13 11:45:08 -0500 )edit