13.14. Warp

13.14.1. Panoramica

Questo filtro sposta i pixel del livello o della selezione attivi in base ai livelli di grigio di una Mappa di spostamento. I pixel vengono spostati in base alla pendenza del gradiente nella mappa di spostamento. I pixel corrispondenti alle aree piene non vengono spostati; maggiore è la pendenza, maggiore è lo spostamento.

Figura 17.323. Da sinistra a destra: immagine originale, mappa spostamento, immagine spostata

Da sinistra a destra: immagine originale, mappa spostamento, immagine spostata

Le aree piene della mappa di spostamento non determinano alcuno spostamento. Le transizioni brusche determinano uno spostamento significativo. Un gradiente lineare determina uno spostamento regolare. La direzione dello spostamento è perpendicolare alla direzione del gradiente (angolo = 90°).


Figura 17.324. Con un gradiente non lineare

Con un gradiente non lineare

Un gradiente non lineare porta alla formazione di riccioli.


Figura 17.325. Con un gradiente complesso:

Con un gradiente complesso:

E un gradiente complesso, come quello che può creare il filtro Rumore continuo, produce un effetto vortice.


Questo filtro offre la possibilità di mascherare una parte dell'immagine per proteggerla dall'azione del filtro.

13.14.2. Attivazione del filtro

Questo filtro si trova nel menu immagine sotto FiltriMappaWarp....

13.14.3. Opzioni

Figura 17.326. Opzioni del filtro Warp

Opzioni del filtro Warp

Opzioni di base

Step size

«Step» is displacement distance for every filter iteration. A 10 value is necessary to get a one pixel displacement. This value can be negative to invert displacement direction.

Iterazioni

The number of repetitions of effect when applying filter.

On edges

Because of displacement, a part of pixels are driven over the borders of layer or selection, and, on the opposite side, pixels places are emptying. The four following options allow you to fix this issue:

Wrap

What goes out on one side is going into the opposite side (this is the default).

Smear

Emptying places are filled with a spreading of the neighboring image line.

Black

Emptying places are filled with black color.

Colore primo piano

Emptying places are filled with the Foreground color of the color area in Toolbox.

Mappa spostamento

To be listed in this file picker, the displacement map, which should be a grayscale image, must be present on your screen when you call this filter and must have the same size as the original image.

Opzioni avanzate

Ampiezza dither

Once all pixels are displaced, this option scatters them randomly, giving grain to the image. The higher this value (0.00-100.00), the thinner the grain.

Figura 17.327. Con ampiezza dither 3.00:

Con ampiezza dither 3.00:

Angolo rotazione

This option sets the displacement angle of pixels according to the slope direction of the gradient. Previous examples have been created with a vertical gradient and a 90° angle: so, pixels were displaced horizontally and nothing went out of the image borders. Here is an example with a 10° angle and 6 iterations:

Figura 17.328. Con un angolo di 10° e 6 iterazioni:

Con un angolo di 10° e 6 iterazioni:

Displacement is made according to a 10° angle against vertical. Pixels going out the lower border on every iteration are going in through the upper border (Wrap option checked), giving a dotted line.


Sottopassi

If you specify a value > 1, the displacement vector is computed in several substeps, giving you a finer control to the displace process.

Mappa magnitudine

In addition to displacement map, you can add a Magnitude map. This map should also be a grayscale image, with the same size as the source image and which must be present on your screen when you call the filter. This map gives more or less strength to the filter on some parts of the image, according to the gray levels of this magnitude map. Image areas corresponding to white parts of this map will undergo all the strength of the filter. Image areas corresponding to black parts of the map will be spared by the filter. Intermediate gray levels will lessen the filter action on corresponding areas of the image. Use magnitude map must be checked for that.

Figura 17.329. Esempio di mappa magnitudine:

Esempio di mappa magnitudine:

From left to right: original image, displacement map, magnitude map, after applying «Warp» filter. You can see that the black areas of the magnitude map prevent the filter from taking action.


Opzioni più avanzate

Queste opzioni extra consentono di aggiungere due nuove mappe, una mappa gradiente e/o una mappa vettoriale.

[Nota] Nota

To test these options alone, you must use a map with a solid color for all the other maps.

Scala gradiente

Using a gradient map, (this map should also be a grayscale image), the displacement of pixels depends on the direction of grayscale transitions. The Gradient scale option lets you set how much the grayscale variations will influence the displacement of pixels. On every iteration, the filter works on the whole image, not only on the red object: this explains blurredness.

Figura 17.330. Esempio di scala gradiente

Esempio di scala gradiente

Da sinistra a destra: immagine originale, mappa gradiente, filtro applicato.


In the example above, «Warp» filter is applied with a gradient map (Gradient scale = 10.0). The gradient is oblique, from top left to right bottom. The part of the image corresponding to the gradient is moved obliquely, 90° rotated (Rotation angle 90° in Advanced Options).

Magnitudine vettore

With this map, the displacement depends on the angle you set in the Angle text box. 0° is upwards. Angles go counter-clockwise. The vector control map determines by how many pixels the image will move on every iteration.

Figura 17.331. Esempio di magnitudine vettore

Esempio di magnitudine vettore

Da sinistra a destra: immagine originale, mappa spostamento, filtro applicato.


In the above example, «Warp» filter is applied with a Vector magnitude. Gradient is vertical, from top to bottom. Vector angle is 45°. The image is moved obliquely, 45° to the top left corner. The image is blurred because every iteration works on the whole image, and not only on the red bar.

Angle

Angle for fixed vector map (see above).