Loading...

Border Removal

Discussions about image processing in GdPicture.NET using GdPictureImaging.

Border Removal

Postby coolwater » Tue Dec 20, 2011 1:40 am

I'm trying to remove black borders during scanning. For some reason, I can't remove the black borders. Please see picture attached. I tried changing the confidence value, and I can't seem to remove the black border. Please help.

_gdPicture.CropBlackBorders(imageID, 85);
Attachments
Sample.png
coolwater
 
Posts: 8
Joined: Wed Nov 09, 2011 6:45 pm

Re: Border Removal

Postby Loïc » Tue Dec 20, 2011 12:15 pm

Hi,

Your image borders are technically not black. You have to use the CropBorders for colour bitmap.

IE:

Code: Select all
Imaging1.CropBorders(m_CurrentImage, ImagingContext.ContextDocument);


Result:
result.png
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Border Removal

Postby coolwater » Tue Dec 20, 2011 1:25 pm

Thanks that worked! FYI, on scanned images where not all borders have black borders, adding black borders and then call the CropBorder fixes the issue.
coolwater
 
Posts: 8
Joined: Wed Nov 09, 2011 6:45 pm


Return to Image Processing

Who is online

Users browsing this forum: No registered users and 0 guests