Take the 2-minute tour ×

I'd like to make a CvSeq of double's. I thought maybe I could get away with this by specifying the element type as CV_32FC1:


However, at runtime I it complains:

Incorrect size of input array (Specified element size doesn't match to the size of the specified element type (try to use 0 for element type) in function cvCreateSeq.

Is there a type e.g. CV_64DC1 in openCV ?

I assume not, but thought its worth asking. At worst I will use 0.

@jeff7 answered correctly in the comments, there is a CV_64FC1 value as well as a CvPoint2D64f.

share|improve this question
Is myMemStorage a CV_32FC1 TYPE? –  user349026 Apr 27 '11 at 19:58
do you mean CV_64FC1? –  jeff7 Apr 27 '11 at 20:08
@jeff7 Yes. Does that exist? I couldn't find it in the O'reilly book. –  AndyL Apr 27 '11 at 21:02
i guess I should have just tried that. ok. hold on. let me try it. –  AndyL Apr 27 '11 at 21:03
You were right! Thanks. If you fill out an answer I will give you your earned 15 points. –  AndyL Apr 27 '11 at 21:20

1 Answer 1

up vote 1 down vote accepted

In OpenCV, a double is represented by the type CV_64FC1 while a float is represented by CV_32FC1.

share|improve this answer

Your Answer


