Page 1 of 1

affine transform smooth jagged edges

Posted: 2008-12-07T21:27:40-07:00
by gmanojbabu
Hi All,
I am using affine transform as shown below
convert \( -resize 208x290 \( 10singleimage.jpg -affine 0.6293203830718994,0.7771459817886353,-0.7771459817886353,0.6293203830718994,237.8,46.55 -transform \) \) +page -matte -background None ln0OWlHG10singleimagebackground.jpg -insert 0 -flatten test.jpg

By doing this, the resulting image on which i am applying affine transform shows jagged edges.
Is there a way to smooth this jagged edges by using affine transform.

Re: affine transform smooth jagged edges

Posted: 2008-12-07T21:41:08-07:00
by fmw42

Re: affine transform smooth jagged edges

Posted: 2008-12-07T21:51:55-07:00
by anthony
Early versions of affine in IM v6 was very bad. Later versions a lot better, but still used the -draw affine functions. Recent versions now call the -distort affine to do the job and as such is controllable with the same -distort settings for -filter -interpolate (when enlarging or -filter point), -virtual-pixel, and the other special -set controls.

See the links previously given for -distort affine.

Re: affine transform smooth jagged edges

Posted: 2008-12-08T04:42:27-07:00
by gmanojbabu
Thank you.
I got it.
Now i am using distort SRT which work as i wanted.

:)

Re: affine transform smooth jagged edges

Posted: 2008-12-08T17:03:05-07:00
by anthony
Yes I find it is easier to handle most affine distortions with SRT.

Though for some situations a two or three control point affine distortion is better. Two point affine is equivalent to SRT, just different argument input.