Search found 5 matches
- 2016-07-24T11:41:50-07:00
- Forum: Users
- Topic: Calculate perspective matrix from GIMP data
- Replies: 11
- Views: 4961
Re: Calculate perspective matrix from GIMP data
It should not matter which is front or back if both your images have transparent backgrounds and your coordinates align closely. So try this with -background none added. magick convert background.png ^ ( foreground.jpg -background none -virtual-pixel none ^ +distort perspective "0,0 874,240 322,0 ...
- 2016-07-24T11:30:46-07:00
- Forum: Users
- Topic: Calculate perspective matrix from GIMP data
- Replies: 11
- Views: 4961
Re: Calculate perspective matrix from GIMP data
Managed to see your edited code! the made the trick! Thanks you very much! But how do I place the foreground image under the background? I was using Dst_Over in -compose but it seems you way needs another function
Code: Select all
-virtual-pixel none
- 2016-07-24T11:19:41-07:00
- Forum: Users
- Topic: Calculate perspective matrix from GIMP data
- Replies: 11
- Views: 4961
Re: Calculate perspective matrix from GIMP data
If you post your two input images, I can process it and show you the command line. What version of Imagemagick are you using and what platform. Syntax for distort control points changed quite a while ago. So if you are using an ancient version of Imagemagick, then the control point syntax may be ...
- 2016-07-24T03:24:31-07:00
- Forum: Users
- Topic: Calculate perspective matrix from GIMP data
- Replies: 11
- Views: 4961
Re: Calculate perspective matrix from GIMP data
You need to use -disort Perspective-Projection not -distort perspective. See http://www.imagemagick.org/Usage/distorts/#perspective_projection. And properly you need to normalize your coefficients so that the last one is identically 1. But your coefficients are probably close enough to get a ...
- 2016-07-23T09:27:18-07:00
- Forum: Users
- Topic: Calculate perspective matrix from GIMP data
- Replies: 11
- Views: 4961
Calculate perspective matrix from GIMP data
Hello, I am trying to use -distort Perspective and I was thinking it worksthe same way as in gimp. So I tryed to manualy change perspective in GIMP and got this: http://i.imgur.com/NCqa1ER.png But I guess IM -distort Perspective uses other way to calculate perspective, because when using gimp matrix ...