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
 BeginImageProcessing & BeginImageAnalysis conflict
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

supersk

80 Posts

Posted - Jun 12 2021 :  22:26:31  Show Profile  Reply
When I use these two functions(BeginImageProcessing and BeginImageAnalysis) alone, everything is OK, but when I call them together, the program will not respond, as shown in the attachment. How to solve it?


attach/supersk/2021612222624_ErrProject5.zip
9.05 KB

My IDE is C++Builder 10.4 Update2 and ImageEn is 10.0.1.

xequte

6525 Posts

Posted - Jun 13 2021 :  00:54:50  Show Profile  Reply
That works when I test it here. Can you give me more information? Also, please attach your EXE.

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

supersk

80 Posts

Posted - Jun 13 2021 :  06:01:47  Show Profile  Reply
you should select a region first, and then press button U and C. When press several times, the program will die.


attach/supersk/20216136622_Err project.zip
1100.32 KB
Go to Top of Page

xequte

6525 Posts

Posted - Jun 13 2021 :  18:02:40  Show Profile  Reply
I put the UpdateImg() and CaculateImg() calls inside a 500 iteration loop and did not see an error.



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

supersk

80 Posts

Posted - Jun 15 2021 :  23:34:31  Show Profile  Reply
I'm going crazy about this, and I've reinstalled the OS(Win10 64bit) and RAD & ImageEn(10.0.1), but the problem still exists.Can you run the program Project5.exe with sample image? When I run this program, press the button "C and U" the program will die.
Go to Top of Page

xequte

6525 Posts

Posted - Jun 20 2021 :  17:38:30  Show Profile  Reply
Hi

Can you clarify if you have added ielib64.dll to your exe folder?

What is the value of IEGlobalSettings().ActivePNGEngine?

https://www.imageen.com/help/TIEImageEnGlobalSettings.ActivePNGEngine.html

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

supersk

80 Posts

Posted - Aug 17 2021 :  21:24:40  Show Profile  Reply
set LegacyBitmap true, the program is all right.Why?
Go to Top of Page

xequte

6525 Posts

Posted - Aug 18 2021 :  19:55:11  Show Profile  Reply
Hi

LegacyBitmap forces the use of a standard TBitmap internally (which is not as good with memory management with large images).

Can you let me know about your ActivePNGEngine so I can test here some more?



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

supersk

80 Posts

Posted - Aug 18 2021 :  21:14:56  Show Profile  Reply
I added ielib64.dll into exe folder.And I didn't set the value of IEGlobalSettings().ActivePNGEngine.
Go to Top of Page

xequte

6525 Posts

Posted - Aug 19 2021 :  01:22:45  Show Profile  Reply
Hi

IEGlobalSettings().ActivePNGEngine just returns the engine that is being used. It should be ieenDLL if ielib64.dll is used.
Does 10.1.0 (and ielib 6.0.0) make any difference?

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

supersk

80 Posts

Posted - Aug 19 2021 :  04:26:59  Show Profile  Reply
Yes#65292; it's same as you described.
Go to Top of Page

xequte

6525 Posts

Posted - Oct 18 2021 :  17:00:10  Show Profile  Reply
Hi

There is a small error in your C++ code. The following code:

if (!proc->BeginImageProcessing(Hyieutils::TIEPixelFormatSet(ie24RGB), x1, y1, x2, y2, "LocalStrech", ProcBitmap, mask))
  return;


Should be written:

if (!proc->BeginImageProcessing(Hyieutils::TIEPixelFormatSet() << ie24RGB, x1, y1, x2, y2, "LocalStrech", ProcBitmap, mask))
  return;


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

supersk

80 Posts

Posted - Oct 18 2021 :  21:34:35  Show Profile  Reply
Thanks a lot.It's OK!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: