AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Removing Black Borders when Rotating and Image

The forum is to discuss topics related to different areas of image processing and computer vision.

Removing Black Borders when Rotating and Image

Postby asadhu7 » Mon Jul 30, 2018 7:58 pm

Hello AForge Community,

Currently, I am working on a project that requires me to rotate an image a specific number of degrees. The image has a white background, but when I rotate it there are irregular black shapes around the image. Is there any way to turn the black areas white or remove those areas specifically. I have attached images of the problem to this post.

Thanks in Advance for the Help
Attachments
endImage.PNG
Rotated Image
endImage.PNG (5.83 KiB) Viewed 714 times
startImage.PNG
Pre Rotated Image
startImage.PNG (4.88 KiB) Viewed 714 times
asadhu7
 
Posts: 2
Joined: Mon Jul 23, 2018 8:08 pm

Re: Removing Black Borders when Rotating and Image

Postby andrew.kirillov » Tue Jul 31, 2018 6:47 am

Hello,

When you use one of the rotation filters of the AForge.NET Framework, you can set the FillColor property to specify which color to use for filling those edge areas.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3359
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to Image Processing and Computer Vision

cron