ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem with TIEVisionMath in 64 bits
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

GEVI

Canada
9 Posts

Posted - Oct 04 2019 :  10:56:21  Show Profile  Reply
I am using the TIEVisionMath.rectContains function.

I tested it in 32 bits and works with no issues. When I compile in 64 bits I am getting an Access Violation:








GEVI

xequte

38608 Posts

Posted - Oct 04 2019 :  21:18:01  Show Profile  Reply
Hi

Can you show me the code you are using?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

GEVI

Canada
9 Posts

Posted - Oct 07 2019 :  09:11:55  Show Profile  Reply
I have to put the code here or you want me to email you the code.

GEVI

GEVI
Go to Top of Page

GEVI

Canada
9 Posts

Posted - Oct 08 2019 :  09:17:08  Show Profile  Reply
Here is an excerpt the code I am using:


ObjRef:=Img1.FindContours(IevEXTERNAL,ievCHAIN_APPROX_SIMPLE,IEVisionPoint(0,0));
LDrawing := IEVisionLib.createDrawing;
LMath := IEVisionLib.createMath;
LColor := IEVisionScalar(255, 0, 0);
LTempIEBitmap.PixelFormat := ie8p;
LIndex := -1;
for i := 0 to ObjRef.Size - 1 do
begin
  LContour := TIEVisionVectorPoint(ObjRef.getObj(i));
  LRectContainingContour := LMath.boundingRect(LContour);
  if LMath.rectContains(LRectContainingContour,LPoint) then
    LIndex := i;
end;


Of course I have modified one of the demo sources to play around with Imageen. The same code works with no issues in 32 bit.


GEVI
Go to Top of Page

xequte

38608 Posts

Posted - Oct 10 2019 :  02:25:38  Show Profile  Reply
Thanks, we'll investigate.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

38608 Posts

Posted - Oct 24 2019 :  14:50:13  Show Profile  Reply
Hi

We cannot reproduce this issue. Can you please send us a small demo and some images that show it.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: