]> granicus.if.org Git - imagemagick/commitdiff
link to left polar decomposition in the ClampUpAxes comments
authornicolas <nicolas@git.imagemagick.org>
Wed, 27 Oct 2010 13:21:30 +0000 (13:21 +0000)
committernicolas <nicolas@git.imagemagick.org>
Wed, 27 Oct 2010 13:21:30 +0000 (13:21 +0000)
magick/resample.c

index 48070b33a19a42b526ecf2e6814029317042f587..5516c0210a2ce9be385ed58c30eacb18d0fe8cc6 100644 (file)
@@ -1334,10 +1334,17 @@ static inline void ClampUpAxes(const double dux,
    * of radius r in output space is an ellipse which contains, at
    * least, a disc of radius r. (Make this hold for any r>0.)
    *
-   * METHOD: Find the singular values and (unit) left singular vectors
-   * of Jinv, clampling up the singular values to 1, and multiplying
-   * the unit left singular vectors by the new singular values in
-   * order to get the minor and major ellipse axis vectors.
+   * SUMMARY OF THE METHOD: Compute the non-unitary factor of the left
+   * polar decomposition of the linear transformation defining the
+   * ellipse and make sure that both its columns have norm at least 1.
+   * Because rotations and reflexions map disks to themselves, it is
+   * not necessary to compute the other factor of the polar
+   * decomposition.
+   *
+   * DETAILS: Find the singular values and (unit) left singular
+   * vectors of Jinv, clampling up the singular values to 1, and
+   * multiplying the unit left singular vectors by the new singular
+   * values in order to get the minor and major ellipse axis vectors.
    *
    * Inputs:
    *