Home > Back-end >  "POINTF *" type of real participation "IB_POINT *" parameter is not compatible
"POINTF *" type of real participation "IB_POINT *" parameter is not compatible

Time:11-19

"PONITF" : it's my own definition of nine digital punctuation:


Then my mistake is as follows:


See "IB_POINTF" has the following structure (defined in image processing library) :



Check the structure of "POINTF" are defined as follows (in OCIDI. H)



Project is my own in the use of company a 9 point calibration image library implementation, I feel this question is very simple question, but for the first time meet or a daze, when I was in c # is directly, because there are ready-made pointf can use in c #, hope to have one great god can give directions, thank you,

At that time to get my own the "POINT", converts cstrings this now, really spent some time,

CodePudding user response:

Ibps2 IB_POINT ibps1 [9], [9].
for (int i=0; I<9. I++) {
Ibps1 [I]. DX=pDlg - & gt; PixlPoint [I]. X;
Ibps1 [I]. DY=pDlg - & gt; PixlPoint [I] y;
Ibps2 [I]. DX=pDlg - & gt; PhyPoint [I]. X;
Ibps2 [I]. DY=pDlg - & gt; PhyPoint [I] y;
}
Use the first oh ah in the function parameter
PDlg - & gt; PixlPoint replaced with ibps1,
PDlg - & gt; Replace for ibps2 PhyPoint

CodePudding user response:

reference 1/f, zhao teacher reply:
IB_POINT ibps1 [9], ibps2 [9].
for (int i=0; I<9. I++) {
Ibps1 [I]. DX=pDlg - & gt; PixlPoint [I]. X;
Ibps1 [I]. DY=pDlg - & gt; PixlPoint [I] y;
Ibps2 [I]. DX=pDlg - & gt; PhyPoint [I]. X;
Ibps2 [I]. DY=pDlg - & gt; PhyPoint [I] y;
}
Use the first oh ah in the function parameter
PDlg - & gt; PixlPoint replaced with ibps1,
PDlg - & gt; PhyPoint replaced with ibps2





Thank you, I just I solved, method is almost like you, amend the initially defined POINTF to IB_POINT directly, can be directly,


Subsequent slightly ran through the modifications, break point is also true that it's no problem for me to see the data flow,

But still thank you,



CodePudding user response:

Type mismatch, passing a pointer, if the type is different, then the pointer to the control area of memory is not the same,
  • Related