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
 AV in TIEBitmap.AssignIEVisionImage() on CopyMemory
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Oribi

Netherlands
17 Posts

Posted - Dec 08 2022 :  08:02:05  Show Profile  Reply
The AssignIEVisionImage raises an AV on the CopyMemory when used on the same instance used to get the IEVisionImage.

The following code:

  IEBmp := TIEBitmap.Create;
  try
    IEBmp.Create(FImgFileName);
    IEVImg := IEBmp.GetIEVisionImage;
    IEVImg.smooth(ievGAUSSIAN);
    IEBmp.AssignIEVisionImage(IEVImg);
  finally
    IEBmp.Free;
  end;


Worked well in ImageEn 10.3, but raises an AV in 11.4.5.

xequte

39052 Posts

Posted - Dec 08 2022 :  18:52:09  Show Profile  Reply
Hi

There was a bug in older versions prior to v11.4.5 that required assignIEVisionImage() for smooth. That is no longer needed. Please change your code to:

  IEBmp := TIEBitmap.Create;
  try
    IEBmp.Create(FImgFileName);
    IEVImg := IEBmp.GetIEVisionImage;
    IEVImg.smooth(ievGAUSSIAN);
  finally
    IEBmp.Free;
  end;



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

Oribi

Netherlands
17 Posts

Posted - Dec 09 2022 :  00:53:53  Show Profile  Reply
I assume that is now the case for all IEVisionImage operations? I use the IEVisionImage quite extensively to perform operations and reassign the image back to the IEBitmap when done.
Go to Top of Page

xequte

39052 Posts

Posted - Dec 09 2022 :  13:52:54  Show Profile  Reply
Sorry, this is a confusing aspect of GetIEVisionImage.

AssignIEVisionImage() is The *only* needed for methods that change the size of the image. Please see the section "About GetIEVisionImage and AssignIEVisionImage" at:

http://www.imageen.com/help/TIEBitmap.GetIEVisionImage.html

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