Changeset 11648 for ImageMagick/trunk
- Timestamp:
- 07/16/08 22:51:19 (3 months ago)
- Files:
-
- 1 modified
-
ImageMagick/trunk/magick/distort.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/magick/distort.c
r11647 r11648 549 549 } 550 550 } 551 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {551 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 552 552 double *inverse = AcquireQuantumMemory(8,sizeof(coefficients[i])); 553 553 if (inverse == (double *) NULL) { … … 589 589 } 590 590 InvertAffineCoefficients(arguments, coefficients); 591 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {591 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 592 592 fprintf(stderr, "Affine Reverse Map\n"); 593 593 fprintf(stderr, " -fx 'xx=%+lf*i %+lf*j %+lf;\n", … … 683 683 coefficients[8] = (coefficients[8] < 0.0) ? -1.0 : +1.0; 684 684 685 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {685 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 686 686 double *inverse = AcquireQuantumMemory(8,sizeof(coefficients[i])); 687 687 if (inverse == (double *) NULL) { … … 724 724 } 725 725 InvertPerspectiveCoefficients(arguments, coefficients); 726 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {726 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 727 727 fprintf(stderr, "Perspective Reverse Map\n"); 728 728 fprintf(stderr, " -fx 'xx=%+lf*i %+lf*j %+lf;\n", … … 799 799 return((double *) NULL); 800 800 } 801 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {801 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 802 802 fprintf(stderr, "Bilinear Reverse Map\n"); 803 803 fprintf(stderr, " -fx 'xx=%+lf*i %+lf*j %+lf*i*j %+lf;\n", … … 870 870 return((double *) NULL); 871 871 } 872 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {872 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 873 873 fprintf(stderr, "Polynomial (order %lg, terms %lg) Reverse Map\n", 874 874 coefficients[0], coefficients[1]); … … 990 990 coefficients[5]=y-nx*coefficients[1]-ny*coefficients[3]; 991 991 992 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {992 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 993 993 double *inverse = AcquireQuantumMemory(8,sizeof(coefficients[i])); 994 994 if (inverse == (double *) NULL) { … … 1078 1078 } 1079 1079 coefficients[4] = (1.0*image->columns-1.0)/2.0; 1080 if ( GetImageArtifact(image," distort:verbose") != (const char *) NULL ) {1080 if ( GetImageArtifact(image,"verbose") != (const char *) NULL ) { 1081 1081 fprintf(stderr, "Arc Reverse Map\n"); 1082 1082 #if 0 … … 1524 1524 if ( point.y > MagickEpsilon ) 1525 1525 ScaleResampleFilter( resample_filter[id], 1526 coefficients[1]/(2*MagickPI )/point.y, 0, 0, coefficients[3] );1526 coefficients[1]/(2*MagickPI*point.y),0,0,coefficients[3] ); 1527 1527 else 1528 1528 ScaleResampleFilter( resample_filter[id],
