It is currently Fri Jul 19, 2019 6:40 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Deform Image: MLS
PostPosted: Fri Mar 29, 2019 6:58 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Feb 09, 2006 11:27 pm
Posts: 2430
Seems that the OpenCV libraries are doing a lot of stuff...

Some days ago I started to write a simple stretch function to be used as an external program for the Faststone Viewer to correct the perspective of photos. It uses the magick library (parameter -distort Perspective) for now but the lib is very large for this tiny stuff...

...can you tell me how to do a simple stretch for calculating a trapezium to a rectangle (or vice versa)?

Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Deform Image: MLS
PostPosted: Sun Mar 31, 2019 11:40 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi Michael Vogel,

See my reply to your question in the following OpenCV post: https://www.purebasic.fr/english/viewtopic.php?p=534612#p534612

-------------------------------------------------

Updated:
- selectable Border Color
- added support for single channel images
- some minor code improvements
- squashed a couple bugs

Border Color
Only accessible from the shortcut [ B ] Key.

NB*: Currently transparency is ignored, but should be included in the next release.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sun Apr 07, 2019 5:18 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Deform Image: MLS
PostPosted: Sun May 26, 2019 3:33 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Updated:
- added four channel support for transparent images
- numerous minor improvements

NOTE:
The transparent background of a deformed PNG image can be changed to a solid color when the border color is changed from transparent and outputted to an animated GIF.
- Border Color defaults to transparent for PNG images and black for any other image type

Transparent Images
Using an FFmpeg Complex Filter I was able to output a transparent animated GIF, but using this method I was not able to modify the Disposal Method.
Not finding any documentation on the subject, I joined the FFmpeg Forum. After a few days without my question being answered, I wrote my own patch.

NB*: A version of the patch can be found in my GIF Toolkit download.

-----------------------------------------------------------------------

Updated:
- image sizes configured to use the built-in PureBasic DPI compiler option

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye