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
 How do I get the bar width?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

save0804

Korea
20 Posts

Posted - Dec 02 2020 :  18:24:09  Show Profile  Reply
How do I get the 4 bar width?



xequte

38182 Posts

Posted - Dec 03 2020 :  01:09:23  Show Profile  Reply
Hi

1. Convert it to B+W:
https://www.imageen.com/help/TImageEnProc.ConvertToBWThreshold.html

2. Iterate over the scanlines, working from right to left until you find the first black pixel:

https://www.imageen.com/help/TIEBitmap.ScanLine.html


Alternatively, if you have IEVision you might find a good solution using Hough Lines:

https://www.imageen.com/help/TIEVisionImage.houghLinesP.html

Try the demo:

\Demos\Testing\IEVision\LinesDetect\LinesDetect.dpr



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