Σχήμα 2
Using high bit depth GIMP’s Exposure operation to lighten the ground by one stop without blowing out portions of the sky.
Αριστερά: Η αρχική εικόνα, ακατέργαστο αρχείο κάμερας με παρεμβολή που είναι εξεπίτηδες υποεκτεθειμένη για να αποφύγει σβήσιμο του ουρανού. Μπορεί να μην φαίνεται ότι είναι τέτοια περίπτωση, αλλά αυτή η εικόνα είναι ήδη πολύ κοντά από το να έχει εκτός φάσματος τις τιμές καναλιών RGB στον ουρανό και μια αυτόματη απλή επέκταση δεν θα φωτίσει καθόλου την εικόνα.
Right: The same image after using high bit depth GIMP’s Exposure operation at 32-bit floating point linear precision to add one stop of positive exposure compensation. An inverse grayscale mask was used to keep the highlights from blowing out.
Αυτό το σταδιακό παράδειγμα παρέχει παράδειγμα εικόνας διαιρεμένο σε πέντε βήματα, ξεκινώντας με την μεταφόρτωση της εικόνας. Τα βήματα 3, 4 και 5 περιγράφουν την ενεργή διαδικασία.
Μεταφορτώστε το tree.png, που είναι μια εικόνα sRGB 16 δυαδικών ακεραίων. Στην πραγματικότητα το υψηλού βάθους δυαδικών GIMP είναι επεξεργαστής εικόνας “μόνο sRGB”, έτσι είναι καλύτερο να μην καν προσπαθήσετε να την επεξεργαστείτε με άλλους RGB χώρους εργασίας.
Open tree.png with GIMP and assign the GIMP built-in sRGB profile (the image colors won’t change a bit). Then convert the image to 32-bit floating point linear precision: Select → → , and in the Encoding Conversion dialog, select Linear light (this ensures that the Normal blend mode produces radiometrically correct results).
Make a copy of the “tree.png” layer via
→ or → , and label it “+1 stop exposure comp”. Then use → to add one stop of positive exposure compensation. Figure 3 below shows the proper settings for the Exposure operation dialog, and Figure 4 shows the result:Σχήμα 3
Using the Exposure operation to add one stop of positive exposure compensation.
When using the Exposure operation to add one stop of positive exposure compensation, make sure the image really is at floating point precision, because integer precision will clip the highlights.
Σχήμα 4
At floating point precision, GIMP’s Exposure operation is unbounded. This means you can use the Exposure operation to add positive exposure compensation without blowing out the highlights.
Σημειώστε τις τιμές καναλιών RGB για τα τέσσερα σημεία του δείγματος: οι πληροφορίες καναλιού που θα περικόπτονταν χρησιμοποιώντας ακέραιη ακρίβεια κωδικοποιούνται χρησιμοποιώντας τιμές καναλιού που είναι μεγαλύτερες από κινητή υποδιαστολή 1,0.
The image in Figure 4 clearly has “blown” highlights in the sky. But the highlights aren’t really blown (that is, clipped to 1.0 in one or more channels). Instead the highlight information is still there, but the RGB channel values fall outside the RGB display channel value range of 0.0f to 1.0f. The sample points dialog in Figure 4 above shows four sample points that have RGB channel values that are greater than 1.0. As shown in Figure 5 below, adding a mask allows you to recover these highlights by bringing them back down into the display range.
Εάν είχατε χρησιμοποιήσει ακέραιη ακρίβεια αντί για κινητή υποδιαστολή, οι υψηλοί φωτισμοί θα είχαν πραγματικά σπαταληθεί: Τα σημεία του δείγματος θα είχαν μέγιστες τιμές καναλιών 255, 65535 ή 4294967295, ανάλογα με το βάθος δυαδικών. Και η μάσκα θα μπορούσε μόνο να “ανακτήσει” μια συμπαγή επέκταση του γκρίζου, στην οποία θα λείπουν πλήρως οι λεπτομέρειες (δοκιμάστε μόνοι σας και δείτε τι συμβαίνει).
Add an inverse grayscale layer mask: Right-click on the layer and select → → , and when the Add Layer Mask dialog pops up, choose Grayscale copy of layer and check the Invert mask box.
Όπως φαίνεται στο παρακάτω σχήμα 5, σε αυτό το σημείο οι υψηλοί φωτισμοί θα επανέλθουν στην περιοχή εμφάνισης, που σημαίνει ότι όλες οι τιμές καναλιών είναι μεταξύ 0,0f και 1,0f. Αλλά η εικόνα θα δείχνει προφανώς κάπως παράξενη (κάπως συννεφιασμένη και επίπεδη) και ανάλογα με την εικόνα, τα πιο φωτεινά σημεία υψηλού φωτισμού μπορεί να έχουν στην πραγματικότητα σκούρες κηλίδες—μην ανησυχείτε! αυτό είναι προσωρινό.
Σχήμα 5
Αποτέλεσμα προσθήκης αντίστροφης μάσκας στρώσης γκρίζας κλίμακας για επαναφορά υψηλών φωτισμών στην περιοχή εμφάνισης.
Η προσθήκη αντίστροφης μάσκας στρώσης γκρίζας κλίμακας επαναφέρει τους υψηλούς φωτισμούς στην περιοχή εμφάνισης, αλλά σε αυτό το σημείο οι περισσότερες εικόνες θα δείχνουν επίπεδες και συννεφιασμένες και οι περισσότερες εικόνες θα έχουν σκούρες κηλίδες στους υψηλούς φωτισμούς. Το επόμενο βήμα -η “Αυτόματη επέκταση αντίθεσης” που εκτελείται στη μάσκα- θα φροντίσει αυτό το πρόβλημα.
Click on the layer mask to select it for editing, and then select : → →
Θα πρέπει να επιλεγεί το “Διατήρηση χρωμάτων” (αν και δεν πειράζει στην πραγματικότητα για εικόνες γκρίζας κλίμακας όπως οι μάσκες στρώσης).
Το παρακάτω Σχήμα 6 εμφανίζει το τελικό αποτέλεσμα:
Doing → → on the layer mask removes the “cloudy” appearance, leaving a nicely brightened image with intact highlights.
→ → on the mask is necessary because just like the image layer has out of gamut RGB channel values, the inverted grayscale mask contains out of gamut grayscale values. → → brings all the mask grayscale values back into the display range, allowing the mask to proportionately compensate for the layer’s otherwise out-of-gamut RGB channel values, masking more in the layer highlights and less/not at all in the image’s shadows and midtones.
Notice that one of the sample points still has a blue RGB channel value that is slightly out of gamut. The easiest way to deal with this is to use middle slider triangle to make a Gamma adjustment of 0.45 on the mask, not on the actual image layer. You can make this Gamma adjustment either on the entire mask (works well, less effort). Or else you can make the adjustment just on the mask shadows (which correspond to the layer highlights), in which case you’d load the mask as a selection, invert the selection, and make the Gamma adjustment. Or if the remaining out of gamut channel values are only very slightly out of gamut, make a “New from Visible” layer and then → → the result to bring the remaining channel values back into gamut. → and drag the
That’s the whole procedure for using the Exposure operation to add a stop of positive exposure compensation to the shadows without blowing out the highlights. Now you can either fine-tune the mask, or else just make a “New from Visible” layer and continue editing your nicely brightened image. Depending on the image and also on your artistic intentions for the image, the mask might not need fine-tuning. But very often you’ll want to modify the resulting tonal distribution by doing a gamma correction, or perhaps a Curves operation on the mask, or else by painting directly on the mask. And sometimes you’ll want to blur the mask to restore micro contrast.