oop abs(complex) was broken

This commit is contained in:
John Cupitt 2012-01-27 21:24:47 +00:00
parent d1f5225e58
commit bf10ec7432
2 changed files with 3 additions and 6 deletions

3
TODO
View File

@ -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

View File

@ -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, <function>fabs(3)</function> for
* float types, and calculate modulus for complex
* float types, and calculates modulus for complex
* types.
*
* See also: vips_sign().