Search found 5 matches

by mickpr
2017-01-06T15:22:52-07:00
Forum: Magick++
Topic: Distort or trapezoid transformation
Replies: 13
Views: 24508

Re: Distort or trapezoid transformation

Magic++ 8:6.8.9.9-7ubuntu5.3
..
Now I see it. thank you.
by mickpr
2017-01-06T14:43:42-07:00
Forum: Magick++
Topic: Distort or trapezoid transformation
Replies: 13
Views: 24508

Re: Distort or trapezoid transformation

There is no distort function in Magick++ library at all! I scan all of *.h files, and tried different version of this library. There are other transform functions, like shear for example or affine transform, but this will not help. It looks, that I have to make distort function myself. Such a pity. :(
by mickpr
2017-01-06T12:06:36-07:00
Forum: Magick++
Topic: Distort or trapezoid transformation
Replies: 13
Views: 24508

Re: Distort or trapezoid transformation

Perhaps perspective distort does what you want. You can give this four coordinates of an image, and the four new coordinates for those points, and the image will be distorted. See magick-image.c function MagickDistortImage(). Could you say something more precise? I can't go to C from C++, there is ...
by mickpr
2017-01-06T02:17:06-07:00
Forum: Magick++
Topic: Distort or trapezoid transformation
Replies: 13
Views: 24508

Re: Distort or trapezoid transformation

Thanks for answers. But they didn't solve my problem. In ruby language I've been doing trapezoid distortion for example in that way: points = [1.5, 0,0, 0,squeeze, width,0, width,squeeze, width,height, width,height - squeeze, 0,height, 0,height-squeeze] img_left = img_left.distort(Magick::Polynomial...
by mickpr
2017-01-05T15:50:42-07:00
Forum: Magick++
Topic: Distort or trapezoid transformation
Replies: 13
Views: 24508

Distort or trapezoid transformation

Hi
I've a problem with Magick++ (c++) where is no distort function implemented.
I
use Ubuntu 16.04 with libmagick++ Q16 12.0.1.
Do you have any solution of this problem?

I'm trying to make left and right oblate image from the stright rectangular image.
Thanks in advance!
Mike