Some of my scripts are breaking on older versions of IM due to an addition of hypot(x,y) in -fx to replace having to do sqrt(x^2+y^2). I would like to put a trap on the version number where this change occurred, if someone could tell me which minor version of IM when hypot first appeared. I would like to use hypot(x,y) on newer releases, if possible, as it is somewhat faster than doing thesqrt(x^2+y^2)
I have a note from Anthony Thyssen saying:
"
Date: Mon, 24 Sep 2007 13:34:21 +1000
From: Anthony Thyssen <anthony@griffith.edu.au>
X-Brightmail-Tracker: AAAAAA==
I was just informed by Cristy, that hypot() has been added
to make -fx handling of polar type images easier...
"
Perhaps this date will help someone identify the release. From the changelogs, there is no mention, but the date puts it at about the end of 6.3.5 or the beginning of 6.3.6.
Thanks
Fred
P.S.
if possible I would also appreciate knowing when the -distort perspective control points format change - what minor IM release was the first to use the new format.
still need first minor release for -fx hypot(x,y) function
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
still need first minor release for -fx hypot(x,y) function
Last edited by fmw42 on 2008-04-10T12:34:54-07:00, edited 5 times in total.
Re: -fx hypot(x,y) function
According to my archives, hypot first appeared in 6.3.8. I have 6.3.8-11 installed, but I suppose it could've appeared in any of the earlier sub-releases of 6.3.8.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: -fx hypot(x,y) function
Thanks, but I do need to know the exact subrelease if I am going to trap accurately. I appreciate the reply.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: still need first minor release for -fx hypot(x,y) function
if possible I would also appreciate knowing when the -distort perspective control points format change - what minor IM release was the first to use the new format.
Thanks.
Fred
Thanks.
Fred
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: still need first minor release for -fx hypot(x,y) function
IM v6.3.6-0 was when the distort functions changed to the new format in preparation for the addition of 'least squares fit' to multiple control points.
However any -distort usage before this can be classed as 'experimental' and not for general use.
However any -distort usage before this can be classed as 'experimental' and not for general use.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/