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 automatic feature detection can be driven manually by adding a bias to the pixels of the image. For example, it is possible to protect regions of the image by adding a positive bias to the corresponding pixels. This will make the seams more unlikely to cross those regions, thus avoiding distortion (but increasing distortion of the other regions). It is also possible to make the seams more likely to cross some regions by adding a negative bias to them. In this case, reducing the size of the image will tend to erase those regions, while (possibly) keeping the rest of the image in a consistent state. ImportantThe bias has to be added before the resizing takes place (but it can be added before initialisation since version 0.4). NoteIn all of the bias-related functions, the bias is added on top of the existing one, so that all of the functions can be called multiple times. The function to use in order to add a bias to a given pixel is:
Typical values for the 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 bias 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 case 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.0133 ]-- |