+ /* User defined weighting power for Shepard's Method */
+ { const char *artifact=GetImageArtifact(image,"shepards:power");
+ if ( artifact != (const char *) NULL ) {
+ coeff[0]=StringToDouble(artifact,(char **) NULL) / 2.0;
+ if ( coeff[0] < MagickEpsilon ) {
+ (void) ThrowMagickException(exception,GetMagickModule(),
+ OptionError,"InvalidArgument","%s", "-define shepards:power" );
+ coeff=(double *) RelinquishMagickMemory(coeff);
+ return((double *) NULL);
+ }
+ }
+ else
+ coeff[0]=1.0; /* Default power of 2 (Inverse Squared) */
+ }