3. Note d'uso

  1. A seconda dello scopo artistico delle immagini, alcune di queste possono essere più adatte di altre a beneficiare della mappatura tonale usando la funzione in virgola mobile Esposizione. I risultati possono variare ma tipicamente la procedura descritta su questa pagina lavora meglio per fotografie di scene con una pronunciata differenza tonale tra le alteluci e le ombre, come spesso accade quando si fanno foto “cielo-terra” in giorni assolati.

  2. Per aggiungere solo uno stop positivo di compensazione dell'esposizione, la procedura descritta in questa pagina funziona molto bene. A seconda dell'immagine, è possibile sfocare la maschera utilizzando un algoritmo di sfocatura che preserva i bordi e/o modificare la maschera utilizzando i comandi Esposizione, Curve, ecc. Tuttavia, è meglio modificare la maschera solo dopo aver utilizzato l'Auto Ampliamento del contrasto sulla maschera. In caso contrario i risultati saranno imprevedibili: Le regolazioni della gamma producono risultati strani quando si utilizzano valori fuori gamut e Curve taglierà sommariamente i valori fuori gamut.

  3. Per aggiungere più di uno stop di compensazione dell'esposizione, si può usare uno o più di uno livelli di compensazione positiva dell'esposizione. In ogni modo la o le maschere di livello devono essere regolate con cura perché ciò dipende fortemente dalle immagini e dall'intento artistico desiderato. Figura 7 mostra un esempio di uso di due livelli di compensazione dell'esposizione per aggiungere due stop e mezzo di compensazione dell'esposizione alle ombre ed ai mezzi toni di un'immagine:

    Uso dei livelli illimitati di GIMP in virgola mobile, assieme alle maschere di livello, per aggiungere due stop positivi di compensazione dell'esposizione, alle ombre e ai mezzitoni di una fotografia di un camioncino in un meleto, scattata in pieno sole.

    Figura 7

    Immagine dalla macchina fotografica, sottoesposta per evitare di bruciare le alteluci.

    Dopo la mappatura tonale/ripristino delle ombre usando la funzione di GIMP Esposizione ad alta profondità di colore in virgola mobile.

    Per confronto, la mappatura tonale Mantuik utilizzando le impostazioni predefinite GEGL.

    Uso del comando Esposizione a virgola mobile di GIMP più maschere di livello per aggiungere due stop e mezzo di compensazione positiva dell'esposizione alle ombre e ai mezzitoni di una fotografia in “pieno sole” di un camion in un meleto.

    Una schermata della pila di livelli usati per fare la mappatura tonale della fotografia del camion del meleto. La mappatura tonale manuale permette il controllo completo sull'immagine risultante. Mantuik ed altri “automagici” algoritmi di mappatura tonale sono pesanti dal punto di vista computazionale, danno risultati difficili da prevedere, e spesso producono risultati che appaiono innaturali.

  4. Before using the Exposure operation to add positive exposure compensation, the base layer should already be stretched to its maximum dynamic range. The easiest way to stretch the base layer to its maximum dynamic range is to do ColorsAutoStretch Contrast… and make sure that Keep colors is checked.

    If you’ve never used an unbounded floating point image editor before, ColorsAutoStretch Contrast… can produce an unexpected result: The image might actually end up with a severely reduced dynamic range, having either lighter shadows or darker highlights or both:

    Before and after doing ColorsAutoStretch Contrast… on the base layer, plus the final image after tone mapping using ColorsExposure…:

    Figura 8

    1. Immagine dalla macchina fotografica

    2. Dopo aver eseguito ColoriAutoAmpliamento contrasto....

    3. L'immagine finale "Linee elettriche".

    1. This scene-referred interpolated raw file from the PhotoFlow raw processor (which provides a GIMP plug-in for easy opening of raw files) has out-of-display-range RGB channel values that will be brought back into the display range by doing ColorsAutoStretch Contrast….

    2. After doing ColorsAutoStretch Contrast…, shadows are lighter and highlights are darker because the dynamic range has been compressed to fit within the display range. This looks like an editing step in the wrong direction! but actually it’s necessary.

    3. Ecco il risultato finale dell'immagine “Linee elettriche” dopo la mappatura tonale della interpolazione riferita alla scena del file raw usando la procedura descritta in questo tutorial.

    As captured by the raw file, this picture of power lines marching into the distance is a typical result of taking a photograph at noon on a bright sunny day: The sky and clouds looked pretty good right out of the camera, but the ground was far too dark. So the image could benefit from some tone mapping to raise the shadows and midtones. The first step is to select ColorsAutoStretch Contrast… to bring any channel values that are less than 0.0f or greater than 1.0f back within the display range of 0.0 to 1.0 floating point.

    Performing ColorsAutoStretch Contrast… to bring the channel values back inside the display range doesn’t exactly look like an editing step in the right direction for tone-mapping this particular image! but really it is. Using ColorsExposure… to add positive exposure compensation to the shadows and midtones won’t work if the image has channel values that fall outside the display range.

  5. Dispensing with “useless” shadow and highlight information: Sometimes interpolated raw files of photographs of high dynamic range scenes end up with a sprinkling of highlight and shadow pixels that contains essentially no useful information. The easiest thing to do with such pixels is to use the Exposure operation to set the desired black and white points, and then clip the resulting out of gamut channel information.

    • Useless highlight information: For the “Power lines” picture shown in Figure 8 above, after applying ColorsAutoStretch Contrast…, a measly 48 pixels occupied nearly half the tonal range (see the histogram to the right). A little investigation with GIMP’s Threshold tool revealed that all 48 pixels are the peak values of specular highlights on the ceramic insulators on the power line pole in the foreground.

      In cases where nearly half the histogram is occupied by a sprinkling of specular highlights, clipping the pixels is often the best and easiest solution. For the “Power lines” image, the 48 pixels in question carried essentially zero information. Use ColorsExposure… to raise the white point, and then ColorsRGB Clip… to actually clip the channel information in the highlights (this time making sure the Clip high pixel values box was checked).

    • Useless shadow information: Some raw processors can output images with negative channel values. And previous edits using high bit depth GIMP might have produced negative channel values. If doing ColorsAutoStretch Contrast… on your base image layer makes the image a whole lot lighter in the shadows, the problem is negative RGB channel values. One solution is to use ColorsExposure… to move the black point to where you want it to be, and then clip the negative channel values. Here are two ways to clip negative channel values:

      • Usare ColoriRitaglio RGB..., assicurandosi di deselezionare la casella Taglia pixel alti.

      • Oppure creare un livello di nero pieno sopra il livello base dell'immagine, impostare la modalità di fusione a “Solo chiari” e creare un nuovo livello usando “Nuovo dal visibile”.

  6. Sfocatura della maschera per ripristinare il micro contrasto: inserendo una maschera inversa su un livello usato per aggiungere compensazione positiva dell'esposizione necessariamente appiattisce leggermente il micro contrasto. A seconda dell'intento artistico per l'immagine, si potrebbe voler sfocare la maschera per ripristinare il microcontrasto. Il trucco consiste nello sfocare la maschera senza introdurre “aloni” attorno ai bordi degli oggetti nell'immagine. Sfocature gaussiane con piccolo raggio producono piccoli ma ovviamente fastidiosi aloni attorno ai bordi scuri. Una sfocatura gaussiana con grande raggio alle volte funziona ma spesso produce un grande alone che separa le parti luminose da quelle scure dell'immagine. Per molte immagini la soluzione migliore è di sfocare la maschera usando un filtro che preservi i bordi come il filtro bilaterale (bilateral smooth) di GIMP G’MIC:

    Aggiunta della compensazione dell'esposizione con e senza il filtro bilaterale (bilateral smooth) della maschera.

    Figura 9

    Senza l'applicazione della lisciatura bilaterale alla maschera, il microcontrasto viene appiattito.

    Dopo l'applicazione della lisciatura bilaterale alla maschera, il microcontrasto viene ripristinato.

    Adding exposure compensation combined with an inverse grayscale mask does flatten micro contrast, which might or might not be desirable depending on your artistic intentions for the image. To restore micro contrast, try using an edge-respecting blur such as G’MIC’s bilateral smoothing filter. GIMP G’MIC doesn’t work on layer masks. A workaround is to turn the unblurred mask into a selection, save the selection as a channel, and then drag the channel to the layer stack for blurring.

  7. An essential component of the procedure for using the Exposure operation to add positive exposure compensation to images with dark shadows and midtones needs to be explicitly mentioned: Not only is the high bit depth GIMP’s Exposure operation unbounded at floating point precision — layer masks are also unbounded.

    Se le maschere invertite in scala di grigi fossero sommariamente tagliate (come nel caso di modifiche in precisione intera), allora la procedura descritta in questo tutorial non avrebbe funzionato.