<sect3 id="using-setup-raw">
    <title
>Inställningar för avkodning av obehandlade bilder</title>

    <para
>I tidiga versioner av &digikam; var bildeditorn bara en fotografivisning, men den utvecklas snabbt till ett mycket användbart bildbehandlingsverktyg. Den här dialogrutan låter dig styra hur bildeditorn beter sig när obehandlade bilder öppnas. </para>

    <para>
        <inlinemediaobject
><imageobject>
            <imagedata fileref="&path;using-setup-editor-raw-behavior.png" format="PNG"/>
        </imageobject
></inlinemediaobject>
    </para>

    <para>
        <guilabel
>Snabbt och enkelt, som 8-bitars bild</guilabel>
    </para>

    <para
>Obehandlade filer avkodas till 8-bitars färgdjup med en BT.709 gammakurva och en 99:e percentil vitpunkt. Läget är mycket snabbare än 16-bitars avkodning. Inställningen <guilabel
>Ljusstyrka</guilabel
> tas bara hänsyn till i 8-bitarsläge (en begränsning i dcraw). </para>
    
    <para>
        <guilabel
>Med standardinställningarna, 16 bitar</guilabel>
    </para>
    
    <para
>Om aktiverade, avkodas alla obehandlade filer till 16-bitars färgdjup genom att använda en linjär gammakurva, enligt inställningarna under fliken <guilabel
>Standardinställningar för obehandlade filer</guilabel
>. För att förhindra mörk bildåtergivning i editorn, rekommenderas att färghantering används i detta läge. </para>
    
    <para>
        <guilabel
>Visa alltid importverktyget för obehandlade bilder för att anpassa inställningar</guilabel>
    </para>
    
    <para
>När alternativet är markerat visas importverktyget för obehandlade filer i bildeditorns högra sidorad, så att du kan ställa in individuella parametrar för varje bild som öppnas. </para>
    
</sect3>

<sect3 id="using-setup-raw-default">
    
    <title
>RAW Default Settings</title>

    <para>
        <inlinemediaobject
><imageobject>
            <imagedata fileref="&path;using-setup-editor-raw-settings.png" format="PNG"/>
        </imageobject
></inlinemediaobject>
    </para>
  
    <para>
        Demosaicing
    </para>

        <para>
            A <ulink url="https://en.wikipedia.org/wiki/Demosaicing"
>demosaicing</ulink
> algorithm is a digital image process used to interpolate a complete image from the partial raw data received from the color-filtered image sensor internal to many digital cameras in form of a matrix of colored pixels. Also known as CFA interpolation or color reconstruction.
        </para>

        <para>
            <guilabel
>Interpolate RGB as four colors</guilabel>
        </para>

        <para>
            The default is to assume that all green pixels are the same. If even-row green pixels of the CCD sensor are more sensitive to ultraviolet light than odd-row this difference causes a mesh pattern in the output; using this option solves this problem with minimal loss of detail. To resume, this option blurs the image a little, but it eliminates false 2x2 mesh patterns with VNG quality method or mazes with AHD quality method.
        </para>
        
        <para>
            <guilabel
>Do not stretch or rotate pixels</guilabel>
        </para>
        
        <para>
            TODO
        </para>
         

        
        <para>
            <guilabel
>Quality:</guilabel>
        </para>
        
        <para>
            TODO
            &digikam; and Dcraw offer us three alternatives: bi-linear, VNG interpolation, AHD interpolation. It seems that <emphasis
>AHD interpolation</emphasis
> (for Adaptive Homogeneity-Directed) is the best choice for quality according to some test that I have performed and the paper of the person that implemented it. <emphasis
>VNG interpolation</emphasis
> (Variable Number of Gradients) was the first algorithm used by Dcraw but suffers from color artifacts on the edge. <emphasis
>Bilinear</emphasis
> is interesting if you are looking for speed with a acceptable result.
        </para>
         

        
        <para>
            <guilabel
>Pass:</guilabel>
        </para>
        
        <para>
            TODO
        </para>
         

        
        <para>
            <guilabel
>Refine interpolation</guilabel>
        </para>
        
        <para>
            This option is available only for DCB and VCD/AHD.
            TODO
        </para>
         

    <para>
        White Balance
    </para>

        
        <para>
            <guilabel
>Method</guilabel>
        </para>
        
        <para>
            Four options are available here: Default D65, Camera, Automatic and Manual. <quote
>Default D65</quote
> reflects normal daylight conditions. <quote
>Camera</quote
> uses the camera's custom white-balance settings if set. ??? <quote
>Automatic</quote
> The default is to use a fixed color balance based on a white card photographed in sunlight. ??? <quote
>Manual</quote
> will adjust colors according to the T(K) (color temperature in degrees Kelvin) and Green settings.
            TODO
        </para>
         

        
        <para>
            <guilabel
>Highlights</guilabel>
        </para>
        
        <para>
            This is the story of the three highlight options, courtesy of Nicolas Vilars:
        </para>

        <para>
            Default is here to consider highlights (read: part of your images that are burned due to the inability of your camera to capture the highlights) as plain / solid white (<guilabel
>solid white</guilabel
> option). You can get some fancy results with the <guilabel
>unclip</guilabel
> option which will paint the highlights in various pinks. At last you can try to consider recovering some parts of the missing information from the highlights (<guilabel
>reconstruct</guilabel
> option).
        </para>

        <para>
            This is possible because the blue pixels tends to saturate less quickly than the greens and the reds. &digikam;/dcraw will try to reconstruct the missing green and red colors from the remaining none saturated blue pixels. Of course here everything is a question of tradeoff between how much color or white you want.
        </para>

        <para>
            If you select <guilabel
>Reconstruct</guilabel
> as the option, you will be given the choice to set a level. A value of 3 is a compromise and can/should be adapted on a per image basis.
        </para>

        <note
><para>
            A small warning here, for the few curious that have read the man pages of Dcraw, the author says that 5 is the compromise, 0 is solid white and 1 unclip. This is because in &digikam; 0 and 1 are the "solid white" and "unclip" options in the drop down menu (if you select these, the level slider will be grayed out). Therefore, the slider in &digikam; with the "reconstruct" option will let you choose between 0 to 7 (instead of 0 to 9 in Dcraw command line) where 3 is the compromise instead of 5 in "native" Dcraw command line tool.
        </para
></note>
         
        
        <para>
            <guilabel
>Exposure Correction (E.V)</guilabel>
        </para>
        
        <para>
            TODO
        </para>
         
        
        <para>
            <guilabel
>Correct false colors in highlights</guilabel>
        </para>
        
        <para>
            TODO
        </para>
         

        <para>
            <guilabel
>Auto Brightness</guilabel>
        </para>

        <para>
            TODO
        </para>
         

    <para>
        Corrections
    </para>

        <para>
            <guilabel
>Noise Reduction</guilabel>
        </para>

        <para>
            TODO
            While demosaicing your image you can additionally ask for noise reduction (at a slight speed penalty). This option applies a noise reduction algorithm while the image still is in CIE Lab color space. Because the noise is only applied to the Luminosity layer (the "L" of the Lab), it should not blur your image as traditional noise reduction algorithms do in RGB mode. So, if you converted an image from RAW and it appears noisy, rather than applying a denoiser, go back and re-convert with this option enabled. The defaults are: <emphasis
>Threshold</emphasis
> = 100. Higher values will increase the smoothing, lower will decrease smoothing.
        </para>
         

        <anchor id="CA.anchor"/>

        <para>
            <guilabel
>Enable chromatic aberration (CA) correction</guilabel>
        </para>

        <para>
            If you know the CA of your lenses you can set the red and blue correction values here. This is certainly the optimal method for CA correction as it is done during RAW conversion.
        </para>

</sect3>

<!--
Local Variables:
mode: sgml
sgml-omittag: nil
sgml-shorttag: t
End:
-->
