RGB statistics for 32-bit image

Hi friends, I am trying to get the RGB information of an image.I created a labview VI using vision assistant for this.
But the issue is that, although it draws histogram for all the three colors, it displays "Statistics"
(i.e. max min value,standard deviation etc.) for only red color and not for blue and green too.
What should i do in order to get statistics for all the three colors.
Best Wishes,
Automator
Solved!
Go to Solution.

Hi,
Did you just drop an express VI created from vision assistant or did you create the VI yourself from the vision palette?
I suggest you do the latter and use this function :
If you have problems doing this, post the VI you came up with, it will be easier for people to help you
Hope this helps
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Similar Messages

  • How to convert for 1 bit image

    dir sir;
    i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
    can i use java to do that?
    and if soo what method and package and function helps me to do that .
    if you can provide me with simple code i will be thankfull.
    beast regards.

    Try using the IMAQ Cast Image function under Motion & Vision>>Vision Utilities>>Image Management>>IMAQ Cast Image.
    Regards,
    Steve

  • Layer won't unlock for 32 bit image in CS4

    I'm running Photoshop CS4 11.0.1 on Windows XP SP3. When I generate a 32 bit image from FILE > AUTOMATE > MERGE TO HDR, the resulting image has a single layer that cannot be unlocked. Consequently, when converting to 16 bit, I can't manually adjust the sliders in the Toning Curve & Histogram area of the HDR Conversion dialog box. What am I missing?

    Ah, that's why I've been pulling my hair out! Thanks for preventing me from losing any more, Chris. I'm not using Extended, so that explains it. I did find the sliders, and they were helpful.

  • What type of BufferedImage is needed for 24 bit image data

    Hello, i am using an image processing api, i have a 24 bit image data, i want to form a BufferedImage and set its pixel values with my data such as
    BufferedImage image = new BufferedImage(w, h, what type?);
    WritableRaster raster = image.getRaster();
    int[] imgpixels = ((DataBufferInt) raster.getDataBuffer()).getData();
    for (int i = 0; i < image.getHeight() * image.getWidth(); i++)
    imgpixels[i] = ((myArray).getRed()) << 16 | ((myArray[i]).getGreen()) << 8 | ((myArray[i]).getBlue());
    Then i will save the Buf. image to file as png. So what type of BufferedImage do i need?
    Regards.

    what is the reason when i read a 24 bit png image...it shows the type as 0 (TYPE_CUSTOM) ?
    From the the Field Detail section for the TYPE_CUSTOM field in BufferedImage: the image type is not recognized.
    You could make a new BufferedImage with TYPE_INT_RGB, or TYPE_INT_ARGB if the image has or will have transparent pixels, and copy the TYPE_CUSTOM image into it. Then you can manipulate/process the new image.

  • 601 vs. RGB Titles for 10 bit

    I've received title cards from a graphics house that are either 601 or RGB in TIFF or PSD format. I tried placing the PSD file into FCP, but it wouldn't accept it. My sequence is 10 bit NTSC, so I then placed the 601 TIFF file into my sequence. The titles are yellow text on black background. Problem is I've noticed during fade in/out of the title card, the black background around the titles looks gray. I'm wondering whether they only show as gray on my Macbook Pro LCD, which is currently set to default "Color LCD" which I believe is RGB color space. I assume they will show as black in the video realm. I realize there are different color calibrations, so I tried putting the RGB file into the timeline and the black level matched fine. My timeline setting is "Render all video processing as high precision YUV". Not sure if that's relevant or not. I'm doing an expensive Digibeta output on Monday so I need to get this right. Any info much appreciated!
    Thanks,
    Alexander

    Actually I have TIFF's already so that's fine, cause I don't really want to mess with Photoshop PSD's which I'm not so good at. I have links to the 601 TIFF and RGB TIFF:
    http://www.realshaolin.com/public/Card4_601.tif
    http://www.realshaolin.com/public/Card4_RGB.tif
    Was wondering why the 601 black background looks grey compared to FCP black filler.

  • Exposure adjustment layer for 32 bit HDR images

    I know I can adjust exposure in Camera Raw. I can use the adjustment brush to make local exposure adjustments in ACR too. Is it possible to make exposure adjustments to 32 bit images in Photoshop? My attempts at using the exposure adjustment layer weren't successful. Although I'm told "exposure" was designed for 32bit, the adjustment layer doesn't seem to be to access and manipulate any of the exposure data thats I know is in the file, but is not visible. It would be should be so useful, but from what I gather the exposure adjustment is totally useless for 32 bit images. Are I doing something wrong? 

    Thanks for the reply. I'm struggling to explain so i'll try and illustrate instead. Basically the Exposure adjustment layer does not work on the 32 bit file in the same way that ACR does. ACR changes exposure in the predictable way it should (like a raw file). The Exposure adjustment layer in photoshop doesn't work the same way. Or at all?

  • AVI creation with 8-bit Image Type specified

    I am NOT able to create an AVI using 8-bit Image Type (specified for IMAQ create)
    I am able to create AVI using RGB Image Type (specified for IMAQ create)
    The help for IMAQ AVI Write Frame states that "This image must be either an 8-bit or RGB image."
    Why does this not work for 8-bit image type. Using LV71, Vision7.
    Thanks,
    Don

    Here is basic code including resulting AVI...Don
    Attachments:
    test.avi ‏195 KB
    test_8bit_avi.llb ‏212 KB

  • Understanding 32 bits image mode

    Hi
    i'm developping a plugin in which higher image quality means higher sound quality.
    though when i'm in mode 32 bits, colors don't behave the same way as in 8 bits or 16 bits.
    for example, in 8 bits i have
    R = 128;
    g = 255;
    b = 128;
    it will not be the same color as in 32 bits:
    R = 0.5;
    G = 1;
    B = 0.5;
    (in 32 bits, is it much brighter)
    how come ?
    how do i do to use 32 bits mode with the same color scheme as in 8 or 16 bits?
    thanks
    Jeff

    thank you
    8 bits and 16 bits images have a gamma 1.0, this is in 32 bits that the gamma is higher.
    How do i set gamma = 1 for 32 bits images? I want 8, 16 and 32 bits images behave the same.
    thanks
    Jeff

  • How to display 16 bit image in VBAI custom inspection interface?

    I'm working with 16 bit grey scale images in VBAI. In configuration mode, there is an option on how to handle 16 bit display mapping, and it works very well to preview the effect of the different display possibilities. However, those settings do not carry over into inspection mode. In the custom inspection interface, if I right click on the image display area it also has an option for 16 bit image mapping, with a default value of "Full Dynamic". It allows me to choose something else, but if I save the custom interface and reopen it, the value always reverts back to "Full Dynamic" For the time being, I've worked around it by adding a vision assistant step to convert the 16 bit image to 8 bit, but I would really prefer to take this step out. Are there any tricks to getting the image mapping setting to work properly within the custom interface? Thanks, Jason

    I would not expect that to happen. I will investigate. In the mean time if you have LabVIEW you can export the custom ui and edit the block diagram in LabVIEW. Then you can add a property node for the image display control to set the 16 bit display mapping when the vi runs. Make sure to reimport this updated ui and edit the step that updates the custom ui to run the code when the step executes. I'll let you know what I find out about why it reverts when you try to set it from the editor in VBAI.
    Thanks
    Brad

  • I want to convert pictures to 1 bit image

    dir sir;
    i want to make a programe by it i want to upload image real image and then it converted it for 1 bit image ;
    can i use java to do that?
    and if soo what method and package and function helps me to do that .
    if you can provide me with simple code i will be thankfull.
    beast regards.

    Hi,
    if you have vision, you could use the functin IMAQ Image to Array to have a 2D array of the pixel values.
    You can then compare pixel by pixel; if your images come from a camera, I would recommend to set a treshold of acceptance.
    This is a time consuming solution anyway.
    Alternative methods:
    1) Make a subtraction of the two images, the resulting image will be the difference of them
    2 ) Use IMAQ LogDiff function (operators palette)
    3) Calculate the histogram of both image and compare the histogram reports
    Good luck,
    Alberto

  • Blending 32-bit images into panorama clips brightness in CC (Windows)

    Hi all,
    I'm running Photoshop CC on Windows and am trying to stitch a HDR panorama.  I have several 32-bit HDRI images, and I can open them individually and see that the full range of brightness is present by reducing the exposure and seeing the detail come up in the bright areas.
    However when I try to run them through Photomerge, I end up with an image that has the brightness clipped - reducing the exposure no longer brings out the highlights in the bright areas.
    The culprit seems to be the auto-blending part of the process.
    How can I blend 32-bit images to end up with a panorama that has the same dynamic range as the original images?  There doesn't seem to be much point having panorama support for 32-bit images if it clips the dynamic range.  Am I doing something wrong?
    Thanks in advance
          -Matthew

    It's been out for months.
    You're using CC, not CC 2014 -- it may already be installed, and you're just launching the wrong version.

  • Unsigned 16-Bit Image Brightness Contrast

    Hello, Everyone
    I have Unsigned 16-Bit Image , I want to change the brightness & Contrast of this Image.
    I dont found any VI in LabVIEW to do that with this format (there is BCG but only for 8-Bit).
    I found this link for that issue:Adjusting Brightness and Contrast for 16-Bit Image
    So, I used the Operators function to do that. but i dont know if  the order of that functions is sensitive or NOT. see Picture
    and did i realy need to use Subtract operators and Divide operators .
    Best wishes
    Alzhrani

    Hi Al-Zahrani,
    I don't believe that it matters whether you do brightness or contrast first. You can verify this by looking at a picture using both methods you showed below. However, when I did this, I did not see much of a difference and believe that you can place either brightness or contrast first. Also, you will need to include the math functions in order to perform the image processing you are trying to do. Hope this helps!
    Mychal F
    Applications Engineer
    National Instruments

  • Converting 10-bit image to RGB 24

    I am using the IMAQ 1409 board to acquire black and white image in 10-bit format. Using the vision software I am type-casting this image into an RGB image. Later am saving the images into an AVI file using VIs from developer zone. The images are saved as RGB 24 bit on the AVI file. Am I losing resolution/information when going from 10-bit to RGB 24?

    Carlos,
    During the conversion process, the 10 bit image is converted to 8 bits, which is the maximum grayscale range for an RGB image. You are losing some information, but it is likely that it is not significant. For most applications, 8 bit grayscale is adequate.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • 32 bit images for print

    Do you have any advise to share if:
    You have several 32 bit highres low key rgb pictures with lens flare effects
    - and you have to send it to print on uncoated paper in grayscale 16 bit?
    All our test ends up with non acceptable posterizing in the lens flare shades.
    And - if you paste images together - is it very important that the two images have the exact same resolution?
    Or do they just paste/render pixel to pixel?
    | Nina Storm

    http://support.hp.com/us-en/drivers/selfservice/hp-15-ac000-notebook-pc-series/7771404/model/8428967#Z7_3054ICK0K8UDA0AQC11TA930O2 I tried to download by using above link, but its giving option for 64 bit only.  

  • Need conversion mechanism for converting 24 bit image to 16 bit

    In my java project I need to convert 24 bit image to 16 bit image. I don't have any clue. Please provide me the option to implement it.
    Thanks,
    jai

    That doesn't tell me much, and I know what you're talking about. I doubt that it tells the OP anything useful whatsoever.Sorry EJP, it was a mouthful I know. Maybe this will help instead, a ColorConversionOps class to work on *32 bit > 16 bit > 32 bit colors*. To help clarify where the 16 bit color input and output goes, some of the methods return or require parameters of type short. Also take notice the bitmask for variables of type short vs the bitmasks for int. AND pay particular attention to the unsigned right bit-shifting of the most-significant-digit.
    public class ColorConversionOps
      public static short convert32_16(int rgb) {
        int a = ((rgb & 0xF0000000) >>> 16);
        int r = ((rgb & 0x00F00000) >>  12);
        int g = ((rgb & 0x0000F000) >>   8);
        int b = ((rgb & 0x000000F0) >>   4);
        return (short)( a | r | g | b);
      public static int convert16_32(short rgb) {
        int a = ((rgb & 0xF000) << 16);
        int r = ((rgb & 0x0F00) << 12);
        int g = ((rgb & 0x00F0) <<  8);
        int b = ((rgb & 0x000F) <<  4);
        return (a | r | g | b);
      public static void printRGB_32(int rgb) {
        System.out.println("a="+((rgb & 0xFF000000) >>> 24));
        System.out.println("r="+((rgb & 0x00FF0000) >>  16));
        System.out.println("g="+((rgb & 0x0000FF00) >>  8));
        System.out.println("b="+ (rgb & 0x000000FF));
        System.out.println();
      public static void printRGB_16(short rgb) {
        System.out.println("a="+((rgb & 0xF000) >>> 12));
        System.out.println("r="+((rgb & 0x0F00) >>  8));
        System.out.println("g="+((rgb & 0x00F0) >>  4));
        System.out.println("b="+ (rgb & 0x000F));
        System.out.println();
    }Now to make the conversion from 32 bit color to 16 bit color and back. NOTICE there willl be a loss of precision -- just like someone else has already said.
    public class Test
      public static void main(String[] args)
        int rgb = 0xFFFFFFFF;
        ColorConversionOps.printRGB_32(rgb);
        //a=255
        //r=255
        //g=255
        //b=255
        rgb = ColorConversionOps.convert32_16(rgb);
        ColorConversionOps.printRGB_16((short)rgb);
        //a=15
        //r=15
        //g=15
        //b=15
        rgb = ColorConversionOps.convert16_32((short)rgb);
        ColorConversionOps.printRGB_32(rgb);
        //a=240
        //r=240
        //g=240
        //b=240
    }And now we see, the reason 16bit color is so unpopular to the rest of the world, but not for us here!

Maybe you are looking for