Rainbow color table flatten to pixmap

I want to use the labview flatten to pixmap to make a jpeg file out of a 16 bit greyscale.  Labview makes lovely images from my data with the "rainbow" color table.  I can't find the rainbow color table anywhere on the forum and would spend many hours trying to make it myself.  I have a "rainbow banded" table that I found here on the forum, but it just doesn't do the image justice.  Can someone help me out with the plain old rainbow color table?  J (using labview 11.0)

Have you tried using your own color gradient with the VI attached to the other forum? There are plenty of rgb color gradients floating around online; Googling 'rgb gradient' returns plenty of examples, such as the one attached below.
Attachments:
rgb-gradient.zip ‏3 KB

Similar Messages

  • Setting color table of intensity graph

    Hi!
    I set the attribute color table of an intensity graph to a rainbow
    distribution of the colors, but now I'm not able to change the color
    table with the markers in the front panel.
    Do you know a solution?
    Thanks, Markus

    > I set the attribute color table of an intensity graph to a rainbow
    > distribution of the colors, but now I'm not able to change the color
    > table with the markers in the front panel.
    > Do you know a solution?
    >
    Intensity graphs have two different modes for its color definition.
    The first, typical one, is the Color array. It can be set using
    either attributes or interactively and lets you define number/color
    pairs that create either a smoothly interpolated or a banded color
    gradient. The second mode is the color table. This is useful for
    bitmaps or for cases where the color table has been custom generated
    on the diagram. When using the color table, the Z scale is still
    useful for determining which numbers map to the 0-255 range of the
    color table. If you set the
    Z scale to autoScale, it will find the
    min and max of the data and set the Z to show all data mapped through
    the color table. If set smaller, some of the values will map to the
    first and last out of range colors. If set larger, it will map the
    values to a smaller and smaller number of the colors in the color
    table.
    It sounds like you really want to be using the color array and not
    the color table. The intensity graph automatically switches for
    you when you write attributes to it, but there is a way to change
    it back the the color array using a popup or attribute.
    Greg McKaskle

  • Picture control rotation - losing color table

    Hi:
    I have some code to rotate pixmaps in a picture control.  I am attaching it here with a sample .png.  I lose the default color table when the rotation occurs, and I don't know why.  Any thoughts?
    Thanks,
    Don
    Attachments:
    picture_manipulation.llb ‏627 KB
    test.png ‏19 KB

    You probably need to manually select the polymorphic instance for the "draw unflattened pixmap.vi" in the orientation event case. Right-click on it and "Select type... Draw 8 bit pixmap". Seems to work just fine here after that.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I get scripting access to color values in the indexed Color Table?

    Hey all,
    I'm relatively new to Photoshop scripting, but I've just finished a script that helps my fiance with some very tedious tasks related to textile design.
    The last issue that I'm having is that the image I start with is indexed and has a very specific Color Table pallete ( 2-12 colors max + black and white, so 14 max total, sometimes as few as 2 ). Part of my script, I create a number of color chips and fill them with black currently... What I'd like is to be able to get a count of the colors in the Color Table and put the actual color values as hex into an 1 dimension array, so that I fill those black chips I've made with the actual colors from the Color Table.
    ( I don't know if it makes a difference but I'm converting the image to RGB mode at some point in the script, and back to Indexed Exact ).
    Can anyone please help me do this? Needs to be compatible with CS5 and CS6 ideally.
    Thanks!!

    Cheers for that, your code works but what had thrown me was that the collections appear to be empty - so I hadn't actually tried retrieving one, I just assumed I was looking in the wrong place.
    So if I do this in my Immediate window:
     App.Current.Resources.Count
     0
    Yet when I request it, I get one:
     App.Current.Resources["TitleTextStyle"]
     {Windows.UI.Xaml.Style}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.Style}
         BasedOn: {Windows.UI.Xaml.Style}
         IsSealed: false
         Setters: {Windows.UI.Xaml.SetterBaseCollection}
         TargetType: {Name = "TextBlock" FullName = "Windows.UI.Xaml.Controls.TextBlock"}
    Looking at the resources object itself, I get similar apparently empty collections:
     App.Current.Resources
     {Windows.UI.Xaml.ResourceDictionary}
         base {Windows.UI.Xaml.DependencyObject}: {Windows.UI.Xaml.ResourceDictionary}
         Count: 0
         IsReadOnly: false
         Keys: Count = 0
         MergedDictionaries: {Windows.UI.Xaml.DependencyObject}
         Source: null
         ThemeDictionaries: {Windows.UI.Xaml.ResourceDictionary}
         Values: Count = 0

  • How do I fix RGB "info" pointing in color table customizer?

    When I hover my cursor over a cell in the color table customizer, the "info" panel is supposed to show the RGB values of that cell (there's 256 cells, one for each color). Which cell the cursor is pointing at for this RGB info purpose is supposed to be determined by the upper left corner of the mouse cursor, that is to say, where the is the "point" of the arrow cursor is. Unfortunately the RGB info is being shown for the cell near the middle or lower right portion of my cursor, and not the upper left point. However the upper left point of my cursor DOES properly select the color when I click on the cell and it brings up the color picker dialog box). Does anybody know how to fix this for the "info" panel's interaction with pointing at the color cells of the color table?
    I'm working with a fresh install of the 32bit version of Photoshop CS6, and my OS is Windows 7 Home Premium x64 (mentioning my OS, just in case my OS somehow has some effect on this).

    When I hover my cursor over a cell in the color table customizer, the "info" panel is supposed to show the RGB values of that cell (there's 256 cells, one for each color). Which cell the cursor is pointing at for this RGB info purpose is supposed to be determined by the upper left corner of the mouse cursor, that is to say, where the is the "point" of the arrow cursor is. Unfortunately the RGB info is being shown for the cell near the middle or lower right portion of my cursor, and not the upper left point. However the upper left point of my cursor DOES properly select the color when I click on the cell and it brings up the color picker dialog box). Does anybody know how to fix this for the "info" panel's interaction with pointing at the color cells of the color table?
    I'm working with a fresh install of the 32bit version of Photoshop CS6, and my OS is Windows 7 Home Premium x64 (mentioning my OS, just in case my OS somehow has some effect on this).

  • How to load Color Table in VB?

    Hi, I'm very new to Illustrator scripting and this problem drives me crazy. I can't find any information on the Web, so please help~!
    I have a series of illustrator files(.ai) and a color table(.act), and I wanna apply the same color table to all these image files. I know how to do it in Illustrator: open the ai file, "save for web" then load the color table in by click the color palette button, then click on "done". But how can I do this in VB? anyone have any idea?
    Your help is highly appreciated!
    Cheers,

    any idea? I really need help~

  • 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 come when I view flash videos my videos stop, but the audio plays  and I see rainbow colored lines up and down the video.

    How come when I view flash videos my videos stop, but the audio plays  and I see rainbow colored lines up and down the video. I attached a image below.

    ATR, just to make sure you understand me, all my video clips in my folders appear as the first frame of the video clip when I view my folders as (small, medium, large)icons instead of lists, when saved as .avi files but when saved as .mp4 files, those icons display as a graphic icon of filmstrip with a musical note on it. I do have various other methods to open with (quick time, windows media, winamp or real player) but prefer real player because I like it's quick and easy trimmer that comes along with it, since so many of my videos are just pet antics where you need to clip off the boring beginning and ends of the video.
    I did go on a few of the icons and right clicked, Open With, and tried quick time and also Windows Media and it did nothing as far as how the file was saved for display, and they opened the same no matter which player I used...the actual video opens and plays right at it's first frame... but it's the way it is visually displayed in STORAGE that bugs me because it isn't immediately apparent to me what it is a video of (weddings, outside the house, pet antics)... it makes me have to actually title things and read titles where before I let it just be dates because I had the visual of that first frame as a reference. Obviously, this is a problem for unedited videos only, as anything I actually work with, I do give a title along with the date of the video.
    I also just realized this seems to be the way ALL videos that are wrapped in .mp4 are displayed, as my bloggie camera's videos appear the same way. Now I know why! My other videos display as .avi's so I see the frame. Puzzle solved. Guess I'll just have to learn to live with it, as it seems to be how things display with the various formats.
    Now I need to watch some tutorials to learn how this Premiere program works! It's all new to me, since this is the first time I've been able load any of my videos onto it. I haven't even been able to figure out how to trim on it yet!

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • Lexmark all-in-one printer error: Color table is missing

    I've got this "Color table is missing." only after I accepted the automatic update 2.2 of 24.2 MB coming from Lexmark.
    To solve the problem I had to remove ALL traces of Lexmark drivers and software, then reinstall the correct driver, the one for Mac Os 10.6 (snow leopard).
    Now I must remember NOT to accept any automatic update and I can use again my X3550.
    So please DO NOT INSTALL that update 2.2 of 24.2 MB!!!
    Message was edited by: Daniele P.

    Color table is missing: solved.
    I've got this "Color table is missing." only after I accepted the automatic update 2.2 of 24.2 MB coming from Lexmark.
    To solve the problem I had to remove ALL traces of Lexmark drivers and software, then reinstall the correct driver, the one for Mac Os 10.6 (snow leopard).
    Now I must remember NOT to accept any automatic update and I can use again my X3550.
    So please DO NOT INSTALL that update 2.2 of 24.2 MB!!!

  • Write tif file color table

    Hello:
    I am trying to write a 16-bit tif file with the proper color table using Vision utility.  I cannot get the proper color table.  I can save as other formats but have special requests for 16-bit tif.
    I have attached an example VI to show you this including a test color table and image.  I will cross post in the Vision forum also.  Any help is appreciated.
    Sincerely,
    Don
    Attachments:
    test_write_tiff.vi ‏56 KB
    normalize_2darray_data_for_16-bit_scanner.vi ‏13 KB

    Identical post in machine vision message board: write tif file color table
    Hope this helps.
    -Ben
    WaterlooLabs

  • PE White Balance for separate color tables

    I'm trying to use 24-patch color checker. I already have image collected. But they are not exactly 6500K and 2850K. Can I use the images to create separate color tables ?

    Yes, you can. It is fine if the numbers don't match, as long as they are reasonably close (e.g., for 6500 it's fine if your image is in the 5000 to 7500 range).

  • Sensor analog balance for 2850K color table

    Hello
    I currently try to create a dual illuminant camera profile using DNG Profile Editor 1.0.0.46 beta for our Aptina CMOS MT9P031 based camera.
    Using the DNG SDK 1.4, i'm converting the BAYER pattern images to a DNG with a Embedded Profile which has identity matrices set on the color matrixes and analog balance DNG tags.
    D65 shooting conditions:
    - High-CRI LED based light source set to 6500K @ 300 lx (spectrum fit 96%)
    - CMOS sensor analog gains were adapted to achieve a neutral image at the D65 shooting conditions
    a. Do I have to keep all component gains to 1.0 or adjust for the illumination?
    b. Does it matter what I apply on the embedded camera profile on the AnalogBalance DNG tag?
    Std A shooting conditions:
    - Same light source set to 2850K @ 300 lx (spectrum fit 92%)
    - CMOS sensor analog gains were _not_ adapted to achieve a neutral image. This obviously results in a orange color tint which can be eliminated using the white balance slider on the "Color Matrices" tab of the DNG Profile Editor.
    c. Do I have to adapt the analog gains when shooting for 2850K
    Using the converted DNGs from shooting conditions above, I can create the color table for 6500K using the "Chart" tab, but not the 2850K color. I always receive the error message:
    "Non-neutral gray patches. The gray patch in row 4, column 3, has a significant color cast. Please reshoot the chart carefully to avoid color casts and try again."
    ...but when using the whitebalanace slider on the "Color Matrices" tab in advance of the "Chart" tab, I can tune the Std A image to a perfect neutral image. There is no color cast visible anymore.
    d. Any ideas what I did wrong?
    Kind regards
    blad

    Hi Eric
    Thanks for taking the questions. Some details and clarifications:
    Our analog gains are set to give a neutral image at D65 and we keep them unchanged even if the in-camera white balance algorithm detects a Std. A illuminant. This means the unprocessed RAW image contains a very warm color tint. Obviously, there is much more red than green and blue in the image. Is it correct, that then f.e. apply:
    oNegative->SetAnalogBalance(0.863, 0.599, 0.389);
    -> The values are derived from the red, green and blue components in the 2850K reference image from one of the gray patches on the color checker.
    Thanks for the tip with the missing ColorMatrix values. When I specify a ColorMatrix and AnalogBalance as (described above) I am able to create a color table using the chart tab in Profile Editor the reference image at D65. I keep getting the error for the reference image at 2850K. Did I specify the ColorMatrix the wrong way?
    oProfile->SetCalibrationIlluminant1(lsStandardLightA);
    dng_matrix_3by3 oRGBMatrix( 1.627, -0.448, -0.222,
                               -0.434,  1.787, -0.350,
                               -0.341, -2.014,  3.294);
    dng_matrix_3by3 oXYZ_to_SRGB_D65( 3.2404542, -1.5371385, -0.4985314,
                                     -0.9692660,  1.8760108,  0.0415560,
                                      0.0556434, -0.2040259,  1.0572252 );
    dng_matrix_3by3 oCA = MapWhiteMatrix(StdA_xy_coord(), D65_xy_coord());
    oProfile->SetColorMatrix1(oXYZ_to_SRGB_D65 * Invert(oRGBMatrix) * oCA);
    As soon as I open the DNG with values from above in DNG Profiel Editor I get a cold image with a blue color cast and click-white balance tells me ~3350K/28 instead of 2850K/0.
    Regards
    Daniel

  • How can create color table for "write bmp file.vi"?

    i want to create a color table for a 8 bit bitmap.The color table is the input of "write bmp file.vi". how can i make it?
    thanks!

    > i want to create a color table for a 8 bit bitmap.The color table is
    > the input of "write bmp file.vi". how can i make it?
    > thanks!
    >
    There is a color control on the front panel numerics palette. A color
    in LV is a four byte xRGB formatted number. So you can make an array of
    the color numerics and set them by hand or format the numbers however
    you like. If unwired it will use the LV color palette which is pretty
    much the HTML palette.
    Greg McKaskle

  • Rainbow color vertical lines under strange circumstances

    So the lovely lady at the airport dropped my bag during security check in at the airport. The bag contained my brand new Mac Book pro. So I thought no big deal (the fall was not that bad and it was in a bag with protection) and it turns out that the screen has a small bump and again I thought no big deal! Here comes the strange part i turn on my mac book and vertical rainbow lines appear across the screen. I close the lid and open it again (screen turns off and on) and the color is restored. My mac will work as perfectly as soon as there is motion on the screen of anykind (videos playing, mose moving etc.) or if the camera is turned and the camera picture is displayed somewhere on the screen (facetime or photobooth). As soon as I display anything still on the computer its rainbow colors again. The bump is about half of mm in the lower right corner of the screen. I guess it can be a software issue (unlikely but possible) and what is left the wires on the screen or the screen itself. Anyone with similar experiences? How much would a repair cost (I would rather not change the whole screen).  But if it was the screen or the wires what difference would it make if anything is running on the screen or the screen is static?

    Problem resolves (if anyone cares). I just saved 1000 Euros on screen replacement using my pure briliance! The right corner bumb caused a damage to the Isight cable which was (when no app is using the camera) sending random electrical signals to the screen. By using a small script to disable Isight drivers the camera is totaly out of power and no electrical signals occure. The screen is super for hours now, I just enable the drivers before I use the camera again.

Maybe you are looking for

  • How do I get the shared Family calendar to show up with Family Sharing enabled?

    Hi, I've enabled Family Sharing and added a couple of my kids, but none of us are seeing a new shared "Family' calendar. I'm just seeing my original calendar list, unchanged since enabling family sharing. I've tried signing out of iCloud and back in

  • How do I stop podcasts from playing automatically on my Apple TV instead of my computer?

    When I try to watch a video podcast on my computer, it will automatically connect to my Apple TV via AirPlay and try to play it there (even though I have just double-clicked it on my computer). But sometimes I just want to play it on my computer, not

  • Outer join with tow columns foreign key

    If I want to select from two tables (A and B) with outer join on table "B" and I have two columns foregn key between the two tables what is the correct way: 1) ...from A,B where A.key1 = B.key1 (+) and A.key2 = B.key2 (+) 2) ...from A,B where A.key1|

  • Add On Problems in 2007 A

    Hi, I am in the process of converting an add-on from 2005 to 2007.  I am having several issues. 1. Saving data - calling the Add or Update methods on a UserTable object causes an error - Could not commit transaction. 2. All events stop firing.  Altho

  • How to disable keyboard shortcut for Type-And-Transfer

    Hi, I'm trying to create a macro in Excel that I want to use the ctrl+shft+h keyboard shortcut. However, Lenovo's Type-and-Transfer tool has hijacked that shortcut so everytime I try to use the shortcut within Excel it launches the Type-and-Transfer