How to Preserve Colors

I have a set of photos taken of different color objects illuminated by different types of lights at night along with a photo of each object in daylight.  Color temp of the lights ranged from 2000K to 6000k. I want to show the difference in color rendering between the different light sources.  I don't want to "improve" the photos -- just show the color distortion as it was -- that's the point.  Photos were taken on a Nikon D50 SLR in raw with auto white balance.
My question is:  I've used "as shot" white balance when importing into Photoshop.  Is that correct?  I'm concerned that the white balance computed by the camera will be used and will distort the original colors.

I'm looking to render whites (and several other colors) at the same distorted color captured by the camera due to differences in the spectral composition of the light used for the scene
There is no such thing as "preserving the colors" but "reproducing the colors", because the camera's way of recording the image is different from what you get at the end (already the thread title How to Preserve Colors showed this misconception).
The pixels of a camera with Bayer type sensor are often described as "red", "green" and "blue". This is comfortable, but incorrect; the pixels should be called Rgb, Grb, Brg, i.e. "mainly red, somewhat green, somewhat blue", the other one "mainly green, somewhat red, somewhat blue" and the third one is "mainly blue, somewhat red, somewhat green".
Let's see an example created with your camera (the sample is from Imaging Resources). We concentrate on the red, green and blue patches of the color checker card. The captures show a crop from the raw, i.e. undemosaiced, non-WBd image. The first capture shows the image in "composite color" mode: the "red" pixel value was used for the R component of RGB, the "blue" pixel value for the B component, and the average of the two "green" pixels became the G component.
The patches appear blue, green and red, more or less. But how are they really? The following captures show only the red, the green and the blue components. If a patch were red, then the green and blue component would be null (black in the display), likewise with the green and blue. Is that so?
It is obvious, that the "natural" color component is the strongest, but the others are far from being black.
The next issue is, that this appearance does not depend only on the color of the object and on the illumination, but on the sensor (on the filters over the sensels) as well. Look at the same patch under the same illumination, created by the D90. It is close, but not identical to the D60:
Again, all the above was without white balancing.
If you want to show, how the D60 (but only the D60!) records a scenery under a givel illumination, you have to use a neutral white balance. First, create such a template shot. The easiest way (though not all cameras like this) is to make a shot of something, which totally clips, like the cloudy sky or a white sheet, at least three stops overexposed (do NOT shoot the sun). Then use this image for setting the custom WB in the camera and select "custom WB" for the demo shot. Now the colors are not adjusted to the illumination.
This is still far from what the camera captured, but somewhat closer. If you want to see really the captured data, use Rawnalyze (free): http://www.cryptobola.com/PhotoBola/Rawnalyze.htm
Gabor

Similar Messages

  • How to preserve colors when using a CMYK PDF as a texture on a 3D Layer (in a RGB document)?

    Hello!
    I'd like to use a CMYK PDF/Illustrator file thats coming from another designer as a label on a 3D object that I imported as a 3D Layer. The Photoshop document is in 16bit RGB mode and has the sRGB color Profile.
    Are these the right requirements to stay as closely to the original CMYK colos as possible? What does the optimal workflow for this look like if the result has to be printed in the end?
    Thank you and regards
    Henning

    You convert the CMYK document to RGB using standard color management. The rest is beside the point. We know nothing about your experience in 3D nor your actual artwork, settings, system and so on. Just slapping on a texture on a 3D model doesn't make it look "real" or even photo-realistic. You have to understand lighting, shading and how to prepare textures properly, stuff for which you can find any number of tutorials on the web (though not specifically for PS 3D).
    Mylenium

  • Preserve coloring in newspaper

    How can I preserve color from an illustrator file saved as pdf and sent to newspaper for print?

    Mh... I beg to disagree:
    - Creating outlines is usually a bad idea, specially if you have tiny text and/or a big quantity of it. Embed fonts.
    - 300 ppi for a newspaper sounds like overkill. 100-150 ppi is usually more than enough.
    - CMYK... which one? A bad election will end in a PDF with way too much ink.
    If you need to shoot a blind shot because of having no data, a PDF/X-1a:2003 with a standard profile like IFRA's ISOnewspaper26v4 (as described in http://www.medibelplus.be/pdf/newspaper/Photoshop_INP26v4_en.pdf) should be in the safe side. And it's dead easy to do.
    A good resorce on choosing the right ICC profile to make a print-ready PDF is http://www.gwg.org/download.php?f=d6be762f2b5d729c65b15b9edd8b718a by the Ghent PDF Workgroup.
    Anyway, I guess the original poster must have printed whatever needed
    Best regards

  • How to load color table in a indexed mode file??

    How to load color table in a indexed mode file??
    Actually, if i opened a indexed file and want to edit color table by loading another color table from desktop (or any other location), any way to do this through java scripting??

    continuing...
    I wrote a script to read a color table from a GIF file and save to an ACT color table file. I think it might be useful for someone.
    It goes a little more deeper than the code I posted before, as it now identifies the table size. It is important because it tells how much data to read.
    Some gif files, even if they are saved with a reduced palette (less than 256), they have all the bytes for the full color palette filled inside the file (sometimes with 0x000000). But, some gif files exported in PS via "save for web" for example, have the color table reduced to optimize file size.
    The script store all colors into an array, allowing some kind of sorting, or processing at will.
    It uses the xlib/Stream.js in xtools from Xbytor
    Here is the code:
    // reads the color table from a GIF image
    // saves to an ACT color table file format
    #include "xtools/xlib/Stream.js"
    // read the 0xA byte in hex format from the gif file
    // this byte has the color table size info at it's 3 last bits
    Stream.readByteHex = function(s) {
      function hexDigit(d) {
        if (d < 10) return d.toString();
        d -= 10;
        return String.fromCharCode('A'.charCodeAt(0) + d);
      var str = '';
      s = s.toString();
         var ch = s.charCodeAt(0xA);
        str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
      return str;
    // hex to bin conversion
    Math.base = function(n, to, from) {
         return parseInt(n, from || 10).toString(to);
    //load test image
    var img = Stream.readFromFile("~/file.gif");
    hex = Stream.readByteHex(img);      // hex string of the 0xA byte
    bin = Math.base(hex,2,16);          // binary string of the 0xA byte
    tableSize = bin.slice(5,8)          // Get the 3 bit info that defines size of the ct
    switch(tableSize)
    case '000': // 6 bytes table
      tablSize = 2
      break;
    case '001': // 12 bytes table
      tablSize = 4
      break;
    case '010': // 24 bytes table
      tablSize = 8
      break;
    case '011': // 48 bytes table
      tablSize = 16
      break;
    case '100': // 96 bytes table
      tablSize = 32
      break;
    case '101': // 192 bytes table
      tablSize = 64
      break;
    case '110': // 384 bytes table
      tablSize = 128
      break;
    case '111': // 768 bytes table
      tablSize = 256
      break;
    //========================================================
    // read a color (triplet) from the color lookup table
    // of a GIF image file | return 3 Bytes Hex String
    Stream.getTbColor = function(s, color) {
      function hexDigit(d) {
        if (d < 10) return d.toString();
        d -= 10;
        return String.fromCharCode('A'.charCodeAt(0) + d);
      var tbStart = 0xD; // Start of the color table byte location
      var colStrSz = 3; // Constant -> RGB
      var str = '';
      s = s.toString();
         for (var i = tbStart+(colStrSz*color); i < tbStart+(colStrSz*color)+colStrSz; i++) {
              var ch = s.charCodeAt(i);
              str += hexDigit(ch >> 4) + hexDigit(ch & 0xF);
          return str;
    var colorHex = [];
    importColors = function (){
         for (i=0; i< tablSize; i++){ // number of colors
              colorHex[i] = Stream.getTbColor(img, i);
    importColors();
    // remove redundant colors
    // important to determine exact color number
    function unique(arrayName){
         var newArray=new Array();
         label:for(var i=0; i<arrayName.length;i++ ){ 
              for(var j=0; j<newArray.length;j++ ){
                   if(newArray[j]==arrayName[i])
                        continue label;
              newArray[newArray.length] = arrayName[i];
         return newArray;
    colorHex = unique(colorHex);
    // we have now an array with all colors from the table in hex format
    // it can be sorted if you want to have some ordering to the exported file
    // in case, add code here.
    var colorStr = colorHex.join('');
    //=================================================================
    // Output to ACT => color triplets in hex format until 256 (Adr. dec 767)
    // if palette has less than 256 colors, is necessary to add the
    // number of colors info in decimal format to the the byte 768.
    ColorNum = colorStr.length/6;
    lstclr = colorStr.slice(-6); // get last color
    if (ColorNum < 10){
    ColorNum = '0'+ ColorNum;
    cConv = function (s){
         var opt = '';
         var str = '';
         for (i=0; i < s.length ; i++){
              for (j=0; j<2 ; j++){
                   var ch = s.charAt(i+j);
                   str += ch;
                   i ++;
              opt += String.fromCharCode(parseInt(str,16));
              str = '';
         return opt
    output = cConv(colorStr);
    // add ending file info for tables with less than 256 colors
    if (ColorNum < 256){
         emptyColors = ((768-(colorStr.length/2))/3);
         lstclr = cConv(lstclr);
         for (i=0; i < emptyColors ; i++){
              output += lstclr; // fill 256 colors
    output += String.fromCharCode(ColorNum) +'\xFF\xFF'; // add ending bytes
    Stream.writeToFile("~/file.act", output);
    PeterGun

  • How convert a color pdf to black and white pdf...? new acrobat in creative cloud cs6

    how convert a color pdf to black and white pdf...? new acrobat in creative cloud cs6

    Print Production << where is this in XI...?

  • How convert a color PDF File to black & white (gray scale...no color)

    How convert a color PDF File to black & white (gray scale...no color)??? creative cloud cs6... Acrobat etc

    Hi, just wanted to add my 2¢
    I've been in publishing over 25 years and live in Acrobat for making my final files. Currently with a newspaper.
    This is what we do:
    • Tool Panes > Print Production Window
    • Select CONVERT COLORS
    • Midway down under OUTPUT INTENT, check Convert Colors to Output Intent
    • In the associated drop down menu, I choose (because I'm printing on newsprint) DOT GAIN 20% – If you're working on better stock, choose a lower dot gain percentage.
    • Click OK – this will convert the file
    • Save
    Note: this affects the file you're working with. Make sure that you use this method on a COPY if you want to retain the original color version.
    I think if you compare my method to the Preflight method, you'll see a tighter contrast and better blacks. I've always felt the Preflight method left continuous tones a little muddy.
    Now if there was only a way to add that to ACTIONS...!

  • How to detect color pages in a PDF?

    I am using a C++ Acrobat plug-in do read/edit a PDF file.
    I need to get the total number of pages in the PDF as well as the page numbers of color pages.
    So far I have been able to get the total number of pages using PDDocGetNumPages() without any trouble.
    However, I cant seem to find an API that lets me know whether a particular page is color or not. Is there a way to do this?
    Thanks in advance!

    But what if there is RGB data that means black or gray (R == G == B), does that mean black or RGB?
    There is some sample code in the SDK for iterating over the content in the PDF, and then you can get the colorspace and the color of each object.
    But you really need to do some background research on colors & colorspaces to properly achieve this goal.
    From: Sachintha81 <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 8 Feb 2012 16:57:10 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How to detect color pages in a PDF?
    Re: How to detect color pages in a PDF?
    created by Sachintha81<http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4194889#4194889

  • How to change colors of LCD/VFD controls from SGC-Tek?

    Hi Anybody got idea how to change colors of LCD/VFD controls from SGC-Tek?
    I have tried but could not. When I try to make myself a nest cluster of clusters of LEDs, I can change colours but I can't do the same thing with LCD/VFD controls.
    Please check at LCD/VFD controls
    Clement

    I suspect this repsonse is somewhat mis-leading, the code has no effect on the control other than setting its state, although the route is somewhat tedious for the mod.
    I would imagine that the control is set up so that the pixels didn't move around when they are being used as controls.
    There are nested groups and locks on the controls, which might make the ordering in the cluster easier to manage.
    The following should work....... ;-) it did for me
    Open  your own new VI
    Open the main LCD VI
    Open the Browse VI Hierachy
    Drag and drop the LCD VI onto your own diagram
    Create a cluster from the LCD VI's connector
    Now ungroup the clusters and unlock them (this is tedious) if you create your own then you could be more imaginative in the structure, I leave that for homework.
    Then import a new bitmap (gif) into the control
    Now update the modified contol back into the master control
    ........ Told you it could be done, but I am not sure the pain was worth it.
    BUT
    Try the alternative control..... with colour settings as well, ANY colour and even some size control.
    It was here http://members.lycos.co.uk/sgctek/

  • How to change color in analytics chart designer

    Hi Guru's,
    Could any one tell me how the chart color can be customized by using chart designer.
    I need to change the category colors in the way High--> Red, Medium --->Yellow , Low ---> Green.
    Chart designer doesn't gave me the flexibility to change the category or point section color through that.
    Thanks
    Praveen Gupta

    Hi,
    check the properties of graph. I guess you can change the colors in properties.

  • How to change colors of individual column bar in the same data series

    in mac numbers, how to change colors of individual column bar in the same data series. The entire column series gets selected in the column bars and cannot select to change colors of specifc bars.

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • How to change colors in Auction monitor

    Hi Experts,
    Could you please help me on below requirement,
    In Auction Monitor , need different darker colors for tracking bids  because some colors cannot be seen on the screen.
    Could you please guide me how to change colors in Monitor.
    Thanks,
    Pavan.

    Hi Vinay.
    I would like to suggest a couple of references, quite similar to your requirement,
    [SDN - Reference for Different Colors in Single Graphical bar|About Different Colors in Single Graphical bar;
    [SDN - Reference for changing colors for graphs|Anyone used colors in VC?;
    [SAP HELP - Standard Reference for Assigning Colors to Parts of a Graph|http://help.sap.com/saphelp_nw04/helpdata/en/39/cca358576911d1896f0000e829fbbd/content.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • How to give colors to the top-of-page in ALV Grid

    How to give colors to the top-of-page in ALV Grid
    in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row)
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    I_LOGO = 'ENJOYSAP_LOGO'
    IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    please help mee

    HI Kranthi,
    Check out teh foll. link,
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    Hope this helps.

  • How to preserve manually maintained Hierachy?

    Gurus,
    How to preserve manually maintained Hierachy in parenth1. We are maintaining some much data manually for BPC only with hierarchy. Problem is every time when we load the hierarchy from BW system the manually maintained hierarchy gets wiped out.
    We don't want to maintain BPC only hierarchy as seperate parenth2. I read this article Understanding how to Preserve Manually maintained Alternate Hierarchies with the new BPC Data Manager Package to Load from BW Hierarchies but this is maintaining as seperate parenth2 or 3.
    Please suggest.
    Thanks.

    Hi,
    You can not maintain the hierarchy in BPC and load from BW, it will be wiped out every time.
    What we did was that we created a new custom hierarchy in BW with the extra nodes.
    Andy

  • How to change color of a button for specific time interval in jsp

    How to change color of a button for specific time interval in jsp.
    Please help.
    Thanks in advance.

    This was driving me crazy, too--and the previous answers did not seem to work. I eventually found that if I click one of the data symbols in the graph in exactly the right spot (see below), it selects only the data symbols and not the line. I can tell this because the little selection dots will be around each data symbol, but no selection dots will be on the line between the data symbols - like the graphic in Yvan's answer. Then and only then will the color symbol in the tool bar show the color of the data symbol, instead of the color of the line. I believe that you then have to first click on the color swatch in the toolbar and then select your color (or choose Show Colors and select from the color tool). Just clicking a color in the crayon box, for example, did not seem to work unless I first clicked on the color swatch in the toolbar, then clicked Show Colors on that dropdown, and +only then+ clicked the crayon or whatever.
    _The right spot to click_ seems to be just above the exact center of the data symbol, at least for the diamond shape symbol that I prefer. Sometimes it takes several tries to hit the right spot. If I miss it, the whole line is selected, which is indicated by the little selection dots on the line, between the data symbols. When I click the right spot, those selection dots go away, leaving only the data symbols selected. Then I can change the color, as described above.
    I hope this works for you too.

  • How can I color a black and white imported jpeg?

    I am new to Illustrator, and have been watching MANY videos, but just cannot seem to figure out how to color the B&W photo I imported into Illustrator CC. Do I need to do something in Photoshop first? Am I missing a step? I was able to trace the image but from there I am lost. Any suggestions are greatly appreciated!

    How can I color a black and white imported jpeg?
    In case you don't want to trace it first:
    -> it needs to real Greyscale. Not just desaturated RGB
    -> Do not save it via Save for Web in Photoshop.

Maybe you are looking for