asymmetric circle grid camera calibration error "OpenCV Error: Bad argument (Unknown array type) in cvarrToMat"
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>
code, please.
"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
^^ your code, not the opencv library one. ( please append that to your question)
(you probably fed something invalid somewhere)