13.14. Στρέβλωση

13.14.1. Επισκόπηση

This filter displaces pixels of active layer or selection according to the gray levels of a Displacement map. Pixels are displaced according to the gradient slope in the displacement map. Pixels corresponding to solid areas are not displaced; the higher the slope, the higher the displacement.

Σχήμα 17.313. From left to right: original image, displacement map, displaced image

From left to right: original image, displacement map, displaced image

Οι συμπαγείς περιοχές του χάρτη μετατόπισης δεν οδηγούν σε μετατόπιση. Απότομες μεταβάσεις δίνουν μια σημαντική μετατόπιση. Μια γραμμική διαβάθμιση δίνει μια κανονική μετατόπιση. Η κατεύθυνση μετατόπισης είναι κάθετη στην κατεύθυνση διαβάθμισης (γωνία = 90°).


Σχήμα 17.314. Με μια μη-γραμμική διαβάθμιση

Με μια μη-γραμμική διαβάθμιση

Μια μη γραμμική διαβάθμιση οδηγεί σε κατσαρώματα.


Σχήμα 17.315. Με μια σύνθετη διαβάθμιση:

Με μια σύνθετη διαβάθμιση:

Και μια σύνθετη διαβάθμιση, τέτοια όπως το φίλτρο συμπαγούς θορύβου, δίνει ένα αποτέλεσμα στροβιλισμού.


Αυτό το φίλτρο προσφέρει τη δυνατότητα κάλυψης ενός μέρους της εικόνας για να την προστατέψει κόντρα στην ενέργεια του φίλτρου.

13.14.2. Activating the filter

This filter is found in the main menu under FiltersMapWarp…. This filter has no Preview.

13.14.3. Επιλογές

Σχήμα 17.316. Επιλογές φίλτρου στρέβλωσης

Επιλογές φίλτρου στρέβλωσης

Βασικές επιλογές

Μέγεθος βήματος

Το «βήμα» είναι η απόσταση μετατόπισης για κάθε επανάληψη φίλτρου. Μια τιμή 10 είναι απαραίτητη για να πάρετε μετατόπιση ενός εικονοστοιχείου. Αυτή η τιμή μπορεί να είναι αρνητική για αντιστροφή της κατεύθυνσης μετατόπισης.

Επαναλήψεις

Ο αριθμός των επαναλήψεων του αποτελέσματος όταν εφαρμόζεται το φίλτρο.

Στα άκρα

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:

Αναδίπλωση

Ότι βγαίνει έξω στη μια πλευρά πηγαίνει στην αντίθετη πλευρά (αυτή είναι η προεπιλογή).

Μουτζούρωμα

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

Μαύρο

Οι άδειες θέσεις γεμίζουν με μαύρο χρώμα.

Foreground color

Οι άδειες θέσεις γεμίζουν με το χρώμα προσκηνίου της χρωματικής περιοχής στην εργαλειοθήκη.

Χάρτης μετατόπισης

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.

Προχωρημένες επιλογές

Μέγεθος πρόσμειξης

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.

Σχήμα 17.317. Με μέγεθος πρόσμειξης 3,00:

Με μέγεθος πρόσμειξης 3,00:

Γωνία περιστροφής

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:

Σχήμα 17.318. Με μια γωνία 10° και 6 επαναλήψεις:

Με μια γωνία 10° και 6 επαναλήψεις:

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.


Υποβήματα

Εάν καθορίσετε μια τιμή μεγαλύτερη από 1, το διάνυσμα μετατόπισης υπολογίζεται σε πολλά υποβήματα, δίνοντας σας ένα λεπτότερο έλεγχο στη διαδικασία μετατόπισης.

Χάρτης μεγέθους

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.

Σχήμα 17.319. Παράδειγμα χάρτη μεγέθους:

Παράδειγμα χάρτη μεγέθους:

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.


Πιο προχωρημένες επιλογές

Αυτές οι πρόσθετες επιλογές επιτρέπουν την προσθήκη δύο νέων χαρτών, ενός χάρτη διαβάθμισης και/ή ενός διανυσματικού χάρτη.

[Σημείωση] Σημείωση

Για να δοκιμάσετε αυτές τις επιλογές μόνο, πρέπει να χρησιμοποιείσετε ένα χάρτη με συμπαγές χρώμα για όλους τους άλλους χάρτες.

Κλίμακα διαβάθμισης

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.

Σχήμα 17.320. Παράδειγμα κλίμακας διαβάθμισης

Παράδειγμα κλίμακας διαβάθμισης

Από αριστερά προς τα δεξιά: η αρχική εικόνα, ο χάρτης διαβάθμισης, με εφαρμοσμένο το φίλτρο.


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).

Vector magnitude

Με αυτό το χάρτη, η μετατόπιση εξαρτάται από τη γωνία που ορίζετε στο πλαίσιο κειμένου γωνία. 0° είναι προς τα πάνω. Οι γωνίες πηγαίνουν αριστερόστροφα. Ο χάρτης ελέγχου διανύσματος καθορίζει κατά πόσα εικονοστοιχεία θα μετακινηθεί η εικόνα σε κάθε επανάληψη.

Σχήμα 17.321. Vector magnitude example

Vector magnitude example

Από αριστερά προς τα δεξιά: η αρχική εικόνα, ο χάρτης μετατόπισης, με εφαρμοσμένο το φίλτρο.


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.

Γωνία

Γωνία για σταθερό διανυσματικό χάρτη (δείτε παραπάνω).