Einzelnen Beitrag anzeigen

Benutzerbild von Jaynder
Jaynder

Registriert seit: 2. Dez 2004
Ort: Süderelbe
134 Beiträge
 
Delphi 10.4 Sydney
 
#13

Re: DLL Funktion(en) von openCV einbinden

  Alt 17. Feb 2010, 15:36
Wenn ich nochmal auf die Fehlermeldung
Zitat:
"Unsupported format or combination of formats (Input sequence must consist of 2d
points or 3d points) in function cvFitLine, .\cvlinefit.cpp(665)"
bei verwendung von cv110.dll bzw. cxcore110.dll.
hinweisen darf: cvFitLine bekommt offensichlich schrottige Daten.

cvFitLine bekommt points : pcvArr

Delphi-Quellcode:
procedure cvFitLine(points : pcvArr; dist_Type : longInt; param : double; reps: double; aeps: double; line: pSingle);cdecl;
// ist in C
//void cvFitLine( const CvArr* points, int dist_type, double param, double reps, double aeps, float* line );
du übergibst aber ein pCvSeq

Delphi-Quellcode:
  seq : pCvSeq;

begin
   ...
    seq := cvCreateSeq(0, sizeOf(CvSeq), sizeOf(CvPoint2D32f), store);
    ...
    cvFitLine(seq, 0, 0, 0.01,0.01, @line[0]);
Liegt es vielleicht daran?
Und wieso übersetzt Delphi das eigentlich ohne Fehler?
  Mit Zitat antworten Zitat