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
 thresholdType ievTHRESH_TRUNC not working
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

starter

4 Posts

Posted - Jun 10 2018 :  20:18:55  Show Profile  Reply
Hi,

ImageEnView1.IEBitmap.GetIEVisionImage().adaptiveThreshold
thresholdType ievTHRESH_TRUNC not working


when run

ImageEnView1.IEBitmap.GetIEVisionImage().adaptiveThreshold(

spinEdit1.Value,
ievADAPTIVE_THRESH_GAUSSIAN_C,
ievTHRESH_TRUNC, // ievTHRESH_BINARY, //
spinEdit2.Value,
spinEdit3.Value

);

always give a exception of "class EOleException with message 'undefined error'"

but ievTHRESH_BINARY works well.

IEVision verion 4.0.0.0_22342

attach/starter/2018610201735_strangeFlipWithEnMView.dproj.zip
17.41 KB

xequte

38182 Posts

Posted - Jun 12 2018 :  16:18:11  Show Profile  Reply
Sorry, this is not correctly documented

For adaptiveThreshold() the only permitted threshold values are ievTHRESH_BINARY or ievTHRESH_BINARY_INV.

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