However it is still a very blury filter for default use in EWA.
* Adjusted Variable Mapping Blur Composition so user arguments actual
relate properly to the sigma of the blur for a maximum mapping value.
+ * Fix horizon anti-alising for output scaled perspective distortions.
2010-09-28 6.6.4-8 Nicolas Robidoux <nicolas.robidoux@gmail...>
* Chantal Racette double checked the bounding parallelogram computation
abs_c6 = fabs(coeff[6]);
abs_c7 = fabs(coeff[7]);
if ( abs_c6 > abs_c7 ) {
- if ( abs_r < abs_c6 )
- validity = 0.5 - coeff[8]*r/coeff[6];
+ if ( abs_r < abs_c6*output_scaling )
+ validity = 0.5 - coeff[8]*r/(coeff[6]*output_scaling);
}
- else if ( abs_r < abs_c7 )
- validity = 0.5 - coeff[8]*r/coeff[7];
+ else if ( abs_r < abs_c7*output_scaling )
+ validity = 0.5 - coeff[8]*r/(coeff[7]*output_scaling);
/* Perspective Sampling Point (if valid) */
if ( validity > 0.0 ) {
/* divide by r affine, for perspective scaling */
break;
}
case ShepardsColorInterpolate:
- { /* Shepards Method,uses its own input arguments as coefficients.
+ { /* Shepards Method, uses its own input arguments as coefficients.
*/
size_t
k;