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
 Detecting image in empty background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

BMurdoch

USA
8 Posts

Posted - Feb 03 2015 :  13:47:44  Show Profile  Reply
I have a large JPG (1000px X 1000px or larger), that only contains a small image on a white background. The image can be of various sizes and locations within the large background. I have attached a sample here.

Is there a way to detect the boundaries of the image and extract it from the large JPG?



Thank you,

Bob M..

xequte

39053 Posts

Posted - Feb 03 2015 :  21:49:55  Show Profile  Reply
Hi

Try AutoCrop:

http://www.imageen.com/help/TImageEnProc.AutoCrop.html

Passing either the color of the top-left pixel or using GetDominantColor.

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