---
name: "im_abs"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_abs"
---

# im\_abs(3)

finds the absolute value or the magnitude of an image

## NAME

im\_abs - finds the absolute value or the magnitude of an image

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_abs( in, out )\
 IMAGE \*in, \*out;

## DESCRIPTION

**[im\_abs(3)](/im_abs/3.md)** finds the absolute value of an image. Copy for UNSIGNED types, negate for int types, [fabs(3)](/fabs/3.md) for float types, and calculate modulus for complex types. Any size, any number of bands.

## RETURN VALUE

The function returns 0 on success and -1 on error.

## SEE ALSO

[im\_exp10tra(3)](/im_exp10tra/3.md), [im\_sign(3)](/im_sign/3.md)
