Search found 13 matches

by tsanders
2013-11-26T01:31:58-07:00
Forum: Users
Topic: GIMP/ImageMagick distort SRT difference
Replies: 11
Views: 5101

Re: GIMP/ImageMagick distort SRT difference -- SOLVED --

Thanks snibgo/fmw42! I misunderstood the IM docs for SRT: "If no control point is given, the exact center of the input source image is used". No control point is indeed NOT similar to control point 0,0. If I use the coordinates of the center of the image for the rotation point and add that...
by tsanders
2013-11-25T15:16:45-07:00
Forum: Users
Topic: GIMP/ImageMagick distort SRT difference
Replies: 11
Views: 5101

Re: GIMP/ImageMagick distort SRT difference

Actually, 0,0 is the center, any other value introduces an offset. SRT with 6 arguments (X,Y Scale Angle NewX,NewY) first scales (but yours doesn't), then rotates about X,Y, then translates from X,Y to NewX,NewY. So your rotate is about (0,0), the top-left corner. Perhaps you'd prefer to rotate abou...
by tsanders
2013-11-25T14:18:56-07:00
Forum: Users
Topic: GIMP/ImageMagick distort SRT difference
Replies: 11
Views: 5101

Re: GIMP/ImageMagick distort SRT difference

Hi fmw42, The zelda picture is probably too small to see the effect. I am using 2826x2112px. -virtual-pixel none does not make any difference. I get virtually the same result using IM -distort SRT and GIMP for 20 degree rotation. There is a nominal 0.5 pixel offset unless you use image coordinates i...
by tsanders
2013-11-25T14:06:19-07:00
Forum: Users
Topic: GIMP/ImageMagick distort SRT difference
Replies: 11
Views: 5101

Re: GIMP/ImageMagick distort SRT difference

Hi Snibgo, Thanks for your input. The order of rotation and translation makes no difference. The units do not seem to be the problem: the rotation is correct, the problem is in the translation. I tried to increase the angle (great idea!) and that showed that I mistakenly thought that the scaling wen...
by tsanders
2013-11-25T07:20:56-07:00
Forum: Users
Topic: GIMP/ImageMagick distort SRT difference
Replies: 11
Views: 5101

GIMP/ImageMagick distort SRT difference

Hi, I have written a python script for Gimp to visually align two images together using layer rotation and translation. I want to use the values found in Gimp to batch-process a set of similar images in IM, using -distort SRT. The SRT values for Gimp produce slightly different results in IM. If the ...
by tsanders
2012-12-13T05:32:54-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

Found it! Checked it out and it works 100% OK! Thanks everyone, GREAT JOB!
by tsanders
2012-12-13T00:47:43-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

Is there any progress on the new beta release? Thanks.
by tsanders
2012-12-10T09:03:12-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

Anthony, Thanks for your effort. I have done some further testing. The thing I am trying to do is to align 25 images with two "jittering" origin points to line up with two chosen destination points. I have made 5 runs with the set of 25 x 2 points, making minor changes to only one destinat...
by tsanders
2012-12-08T03:16:41-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

Are you using Ubuntu? If so, what version?
by tsanders
2012-12-07T07:56:10-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

NEW RESULTS:
using literally the same code (including the koala.png imagefile) from the second example in http://www.imagemagick.org/Usage/distor ... rol_points also produces a black image.

The first example works OK...
by tsanders
2012-12-07T04:35:54-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

The thing I need is the second example in http://www.imagemagick.org/Usage/distorts/#control_points (aligning two points on two other points) I am using the exact code as described in the example, resulting sometimes in black images, as described in my original post. NEW RESULTS: If I add a third co...
by tsanders
2012-12-06T13:31:46-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

Re: WEIRD: convert -distort Affine producing black images

Thanks for your input. The Affine method should work with two control points. See http://www.imagemagick.org/Usage/distor ... rol_points.

I cannot see how to use SRT with two controlpoints. AFAIK rotation must always be there. This was my main reason to switch to Affine.
by tsanders
2012-12-06T04:39:05-07:00
Forum: Bugs
Topic: WEIRD: convert -distort Affine producing black images
Replies: 25
Views: 22924

WEIRD: convert -distort Affine producing black images

I want to do a distortion with two controlpoints on a 2816x2112 pixel image. convert 001.jpg -distort Affine "369.5,1060.5 700,1100 2405.5,1077.5 2000,1100" 002.jpg - image is all black :shock: convert 001.jpg -distort Affine "368.5,1060.5 700,1100 2405.5,1077.5 2000,1100" 002.jp...