---
name: "lqr_carver_init"
section: "3"
platform: "linux"
package: "liblqr-1-0-dev"
version: "0.4.1-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/lqr_carver_init"
---

# lqr\_carver\_init(3)

activates an LqrCarver object

## NAME

lqr\_carver\_init - activates an LqrCarver object

## SYNOPSIS

```
#include <lqr.h>
```

**LqrRetVal lqr\_carver\_init(LqrCarver\*** *carver***, gint** *delta\_x***, gfloat** *rigidity***);**

## DESCRIPTION

The function **lqr\_carver\_init** initialises the LqrCarver pointed to by *carver*, so that it can compute the visibility maps as needed upon calls of **lqr\_carver\_resize**.

The parameter *delta\_x* controls the maximum transversal step a seam can make. A value of 0 means straight seams. Normally, it is set to 1.

The parameter *rigidity* can be used to add a negative bias to non-straight seams, and it is normally set to 0.

Visibility maps must not be loaded with the function **lqr\_vmap\_load** when using this function, neither before nor after invoking it.

## RETURN VALUE

The return value follows the Liquid Rescale library signalling system.

## SEE ALSO

[**LqrRetVal**(3)](/LqrRetVal/3.md), [**lqr\_carver\_new**(3)](/lqr_carver_new/3.md), [**lqr\_vmap\_load**(3)](/lqr_vmap_load/3.md), [**lqr\_carver\_set\_preserve\_input\_image**(3)](/lqr_carver_set_preserve_input_image/3.md)

## COPYRIGHT

Copyright © 2007-2009 Carlo Baldassi\
