diff --git a/TODO b/TODO index 0f7209e6..273634a5 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,3 @@ -- viewing an image tagged as fourier in nip2 is broken, which operation is - failing? im_abs()? - - add a fft test to the suite diff --git a/libvips/arithmetic/abs.c b/libvips/arithmetic/abs.c index 32183611..a7566aa7 100644 --- a/libvips/arithmetic/abs.c +++ b/libvips/arithmetic/abs.c @@ -198,11 +198,11 @@ vips_abs_buffer( VipsArithmetic *arithmetic, #define D VIPS_FORMAT_DOUBLE #define DX VIPS_FORMAT_DPCOMPLEX -/* Format doesn't change with abs. +/* Format doesn't change with abs, other than complex -> real. */ static const VipsBandFormat vips_bandfmt_abs[10] = { /* UC C US S UI I F X D DX */ - UC, C, US, S, UI, I, F, X, D, DX + UC, C, US, S, UI, I, F, F, D, D }; static void @@ -234,7 +234,7 @@ vips_abs_init( VipsAbs *abs ) * This operation finds the absolute value of an image. It does a copy for * unsigned integer types, negate for negative values in * signed integer types, fabs(3) for - * float types, and calculate modulus for complex + * float types, and calculates modulus for complex * types. * * See also: vips_sign().