Search found 5 matches

by dummzeuch
2019-12-11T01:40:06-07:00
Forum: MagickWand
Topic: unexpected PerspectiveDistortion result
Replies: 3
Views: 3495

Re: unexpected PerspectiveDistortion result

OK, so I first, I have got a bug here: I move everything by one pixel. (Why didn't I see that when I copyied the parameters? :-(( )

And perspective distortion has a slightly different effect than I thought. Hm, I'll have to think about this some more, whether this is what I need.

Thanks a lot.
by dummzeuch
2019-12-10T06:57:57-07:00
Forum: MagickWand
Topic: unexpected PerspectiveDistortion result
Replies: 3
Views: 3495

unexpected PerspectiveDistortion result

I am using MagickDistortImage trying to correct a trapezoid distortion like this: https://download.dummzeuch.de/forimagemagick/input.jpg (image hand painted, just for demonstration purposes) The image has 640x480 pixels. I'm using the following parameters: MagickDistortImage(TheWand, PerspectiveDist...
by dummzeuch
2019-11-08T05:33:11-07:00
Forum: MagickWand
Topic: distort:viewport
Replies: 3
Views: 7745

Re: distort:viewport

I would guess: SetImageProperty(wand->images,"distort:viewport","640x431+0+30",wand->exception); If this returns false, something bad happened. Thanks. Sorry for not getting back to you earlier. I started a project using ImageMagick but got side tracked afterwards. I have no idea when I will find t...
by dummzeuch
2019-10-23T03:11:56-07:00
Forum: MagickWand
Topic: distort:viewport
Replies: 3
Views: 7745

Re: distort:viewport

I found one solution, but maybe not the best:

Code: Select all

NewWand = MagickGetImageRegion(Wand, 640, 431, 0, 30);
The resulting picture is now binary identical to the one the command line creates.

But there must be a faster way than creating a copy of the picture!
by dummzeuch
2019-10-23T02:41:06-07:00
Forum: MagickWand
Topic: distort:viewport
Replies: 3
Views: 7745

distort:viewport

Hi, I have got the following magick command line which I want to convert to DLL calls: @echo off set MAGICK=PathToMagickExe set IN=InputFilename set OUT2=OutputFilename rem TLS = top left source rem TLT = top left target rem TRS = top right source rem ... rem BLT = bottom left target set TLS=0.5,18....