Constructing an RGB Image using IMAQ ReplaceColorPlane VI

Hi everyone,
I'm trying to familiarize myself with the Vision Development Module on LabView 2009 Student Edition because I want to manipulate images in real time. Currently, I'm trying to split up an RGB image into R,G, and B pixel values then recombine them back into the same image. I can do everything up to the recombining back into the same image part. I think this can be done with the IMAQ ReplaceColorPlane VI (I haven't found another VI that seems appropriate) but all I seem to get is black for both my input and output display. I really have no idea with where I went wrong on this and I need some help to figure this out.
I attached the VI I'm using for reference.
Any insight at all would be a huge help
Solved!
Go to Solution.

Hi,
I don't really know why you couldn't upload your VI, it normally works well, a workaround if you really can't do it it to make a screen shot (print screen) of the block diagram and post the image.
For your problem, I think the issue is the size of the image you want to build from the planes, if you want the Replace color plane function to work without error, you have to set the size of the image buffer before your do the replace.
See this example :
Hope this helps
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

Similar Messages

  • Is there an example somewhere that shows how to acquire StillColor images using IMAQ Vision calls?

    I need to be able to acquire images from both composite and RGB channels. I am also confused of how to display them and modify display settings as go from color to grayscale to binary.Thanks.

    Jerry,
    I have attached a CVI example for doing stillcolor acquisition. If you are using LabVIEW, there should also be shipping examples for stillcolor acquisition under labview\examples\imaq\imaq color.llb
    To configure your imaq board for stillcolor acquisition, please refer to the following KB
    http://digital.ni.com/public.nsf/3efedde4322fef198​62567740067f3cc/cc743c416e390c008625683f007562c7?O​penDocument
    Hope this helps.
    Ken Sun
    Applications Engineer
    National Instruments
    Attachments:
    advanced_stillcolor.c ‏8 KB
    advanced_stillcolor.h ‏3 KB
    advanced_stillcolor.uir ‏19 KB

  • How to extract 64 bit data from imaq image using IMAQ Extract VI

    I have LV 8.5.1, Vision 8.5 and need to extract 64 bit data from a 64 bit image and I get the "invalid image" error while using the IMAQ Extract VI.  What version of Vision do I need to allow me to do this? 
    Currently, the work-around I have...
    1) convert the image to 32bit
    2) use the ROI tools I to get the rectangle data I need
    3) then go back to the original image and the convert the image to a 64 bit array
    4) take the rectangle data to extract the data needed out of the 64 bit array data.
    klunky but it works.  I would think that the IMAQ Extract tool should allow me to extract the 64 bit data but it doesnt... forces me to 32 bit.
    suggestions?

    steve05ram360 wrote:
    awesome, that does work. 
    Attached DLL slightly corrected and should be OK also "in place" when Dst is not connected like original IMAQ function. Hopefully it works properly now. By the way all IMAQ types are supported, not only U64.
    Andrey.
    Attachments:
    ADVExtractDLL.zip ‏9 KB

  • Grab images using IMAQ without sending frame request

    Hello,
    When a camera is externally triggered, is it possible to design a *.vi that makes use of IMAQ and grabs images via Camera Link frame grabber without sending frame request signals AND without knowing the external trigger? Just to grab images whenever FVAL, LVAL and DVAL go high. Possible?
    Thanks.

    Greetings, kcin;
    Just to check whether I understood or not, to have the Framegrabber acquire images when the FVAL, LVAL and DVAL lines go high with no other communication between the camera and the host computer? What exactly is the purpose of this endeavor?
    Initially, I do not believe it would be possible while using our IMAQ Driver simply due to the way it is designed; I will look into the matter further and inform you of my findings.
    Cordially;
    Simon P.
    National Instruments
    Applications Engineer

  • Problem in processing image using IMAQ

    I want to do image processing (filtering, thresholding and skeletonizing) on my acquired image. Unfortunately, the program that I made cannot run. When I try to execute it, the error message: incompatible image size appears. Anybody can point out what's wrong with my program? Attached is the VI that I made. Really appreciate your help.
    Attachments:
    Image_Acquisition.vi ‏71 KB

    Check where you are getting your image from. You should be taking the image from the IMAQ Get Image.VI. The way your code is currently set up, you are processing a non-existant image. LabVIEW will run any subVI as soon as all of it's inputs are satisfied. Your processing is set up to start just after you create the image buffer, rather than waiting until after you fill it.

  • How to use IMAQ extract color panel in a LabView file?

    I want to change a color image into a greyscale image. Therefore I want to use the function IMAQ extract color panels but I don't know how to insert it in my LabView application.
    Please, can anyone give me some advice ?!!!
    Thx, Birgit

    Birgit,
    If you want all of the color planes, you can use IMAQ ExtractColorPlanes. Allocate an 8-bit image for each of the color planes. Wire the original color image and each of the 8-bit images for the color planes on the left and bottom of the vi. The outputs on the right side will be the same images, and they will each contain the desired color plane. The input at the top of the vi controls which color planes are extracted (RGB, HSI, etc.) Grayscale will probably be the I plane in HSI.
    If you just want a grayscale image, use IMAQ ExtractSingleColorPlane instead. Wire the color image to Image Src, and wire an 8-bit image to Image Dest. Select the color plane using the top input, and it will come out on the right side.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Overprint Preview, RGB, Image Resolution Acrobat v9

    I recently started using Acrobat 9. There is 2 things I'm looking in V9.
    1- Overprint Preview
    2- All image resolutions in a HiRes pdf. I see a custom check profile called "resolution of color & grayscale images is between..." but I want image resolution is ...
    3- Flag any RGB images used.
    ThankYou

    I'm sorry what I mean if a pdf have 35 images I would to see the image resolution of all of them independently if they are 72 or 600 dpi.

  • Acquiring Images using the USB port

    I want to acquire Images using the USB port of the PC. Is it possible to acquire images using the USB port and analyze the image using IMAQ library. If we use the USB port direct then we may not need the IMAQ vision acquisition card.

    Try Irene's drivers (see previous answer above), or Peter Parente's webcam drivers (www.mindofpete.org).
    cheers,
    Christopher
    Christopher G. Relf
    Certified LabVIEW Developer
    [email protected]
    International Voicemail & Fax: +61 2 8080 8132
    Australian Voicemail & Fax: (02) 8080 8132
    EULA
    1) This is a private email, and although the views expressed within it may not be purely my own, unless specifically referenced I do not suggest they are necessarily associated with anyone else including, but not limited to, my employer(s).
    2) This email has NOT been scanned for virii - attached file(s), if any, are provided as is. By copying, detaching and/or opening attached files, you agree to indemnify the sender of such responsib
    ility.
    3) Because e-mail can be altered electronically, the integrity of this communication cannot be guaranteed.
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Problem using IMAQ Array to Color Image vi

    I am doing some pixel manipulation & while going from an image to an Image Pixels (U64) array using IMAQ Color Image to Array VI I cannot see the image once it is modified.
    I am...
    1) converting the image to the 64 bit pixel data using IMAQ ColorImage to Array.vi
    2) doing the manipulation
    3) converting back to an image using the IMAQ Array to ColorImage.vi using the 64 bit input.
    What I get is...
    1) a black image with data behind it... meaning... if I take the magnifier tool and go to the approximate locations of my image where I expect to find the manipulated data, it is there.
    2) cast that image to a 32 bit image & still get a black image for the output.  The data however is no longer there and appears to have been stripped.  
    3) no error's out of any VI's...
    TIA  

    With Vision 2009 situation is not better.
    It happened because U64 image displayed in full scale. So, if you have full range of intensities (from 0 to 65535), then you can see something. But if your intensities in small range, for example, 0...255 in all channels, then you will see black image.
    Feel differences:
    It should be possible to map U16 values into U8 display range  with given range (like IMAQ WindDisplay Mapping does), but right now this feature available for I16 images only, not for U64. What you can do is following - map each channel to U8 (with linear LUT, for example), put channels together, then display 32 bit RGB instead of U64.
    Andrey.

  • How to use IMAQ Bayer To RGB ?

    Hello everybody.
    Could you please tell how to use IMAQ Bayer To RGB. I read from help that we need Bayer Parameters. But in help haven't structure of Bayer Parameters. I find any example of IMAQ Bayer To RGB and Bayer Parameters in Labview
    Thank you for reading my poor english and help me !
    Solved!
    Go to Solution.

    Hello,
    What kind of camera bus are you using? (Camera Link, GigE, FireWire, etc.)  When you acquire an image in MAX does it appear to have the bayer grid?  Have you tried adjusting the bayer color of the camera in MAX?
    There are two examples shipped with Vision Acquisition Software that show how to perform Bayer decoding one for NI-IMAQ and the other for NI-IMAQdx.  If you open up LabVIEW's example finder by going to Help >> Find Examples  you can search for Grab With Bayer Decoding.vi or Grab and Bayer Decoding.vi.
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • Using IMAQ Cast Image to convert 16 bit to 8 bit image.

    I am trying to convert a 16 bit image to a bit image, and I am using IMAQ Cast Image. I am wondering what I am supposed to wire into the # of shifts? When I use NI Vision Assistant it asks I can convert by the adjust dynamic method. Does anyone know how to do this with IMAQ Cast Image? Thank you in advance.

    The number of shifts is the number of bits that will be chopped (in the dark regions) from the initial image to fit into 8 bits.
    For instance, if you have a 10 bit image, compressing into an 8 bit image will obviously introduce some losses. You can decide to loose information either in the "whithe" parts or in the "black" parts of the image.
    With #shifts = 0, the two most significant bits will be lost, so the whitest parts of the image will be uniformely white, but the darl grey levels will be preserved.
    With #shifts = 2, the two least significant bits will be lost, preversing the whitest parts grey variations, but losing the subtilities in the darkest parts.
    With #shifts = 1, a single bit is lost on either sides...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Do IMAQ Cast Image or IMAQ Linear averages give different results when using different computers that are running under Windows XP ?

    Hello
    I'm currently developping an image processing algorithm using Labview 7.1 and the associated IMAQ Vision tools. After several tests, I found a weird result. Indeed, I put the labview algorithm - including the IMAQ VI on the library to get sure that I use all the time the same VI - on my memory stick and used it on two different computers. I tested the same picture (still in my memory stick) and had two very different results.
    After several hours trying to understand why, I found that there were a difference between the results given by both computers at the very begining of the algorithm. Indeed, I used a JPEG file.
    To open it, I first create an Image with IMAQ Create (U8). Then, I open it.
    Then in my first sub-VI, I use IMAQ Cast Image to be sure that the picture is a U8 grayscale picture.
    Right after that, I use the IMAQ Linear Averages. The results of this VI are different on the two computers.
    I tried several time on the same picture : one computer always give me the same result but the two computers give me a different result. So there is no random variable on the results.
    So my question is : Do IMAQ Cast Image or IMAQ Linear averages give different results when using different computers that are running under Windows XP ?
    My bet is on IMAQ Cast Image but I'm not quite sure and I do not undestand why. The labview and IMAQ are the same on both computers.
    The difference between the two computer are above :
    Computer 1 :
    Pentium(R) 4 CPU 3.20GHz with a RAM of 1Go. The processor is an Intel(R).
    The OS is windows XP Pro 2002
    Computer 2 :
    Pentium(R) 4 CPU 2.80GHz with a RAM of 512Mo. The processor is an Intel(R).
    The OS is windows XP Pro 2002.
    If anybody can help me on this problem, it would be really helpful.
    Regards
    Florence P.

    Hi,
    Indeed it's a strange behaviour, could you send me your VI and your JPEG file, (or another file that reproduces) so that I could check this inthere ?
    I'll then try to find out what's happening.
    Regards
    Richard Keromen
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception

  • Using IMAQ Image Display control vs IMAQ WindDraw for large image files

    Hello All;
    I am designing an application that is currently using IMAQ Image Display control to view large images (5K x 3K and larger).  My problem is that these images take 10-20 seconds to load and display, whereas if I use IMAQ WindDraw to display my image in a separate window, it only takes a couple of seconds.  My application is designed such that I am making use of the Subpanels in LabVIEW 8.0, and to make it pleasant for the user, the interface is such that my line profile, histograph and image viewer displays are contained within the same GUI (panel).
    I read the National Instruments application note regarding displaying of large images, and it did not seem to make a difference.  For example, I switched the 'modern' IMAQ Image Display control with the classic Image Display control, since the 'classic' does not contain any of the 3D rendering tools which might slow the process down.
    Why is there such a huge difference in loading times if I am trying to do exactly the same thing with both methods?  How can I bring the IMAQ Image Display control up to the same speed as the IMAQ WindDraw tool?
    I am currently using LabVIEW 8.0 with the latest IMAQ/NI Vision package from NI (IMAQ v7.1?).  Thanks.
    DJH

    Use a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Using IMAQ create, set-up, acquire and windraw to save image without color map

    Hi,
    Attached is my VI (using labview 8.5) and am not sure where it is getting the color info from, but it saves the image as jpeg/bmp/tiff with colormap (confirmed by imread in matlab). Can someone help me save these images without colormap info.
    Thanks
    Attachments:
    HL Grab with two boards and SONY XC55_Images.vi ‏166 KB

    Hi Maverick269,
    I noticed that you posted this question over on the Machine Vision forums as well. That will definitely be a better place to get this question answered, so let's work on the issue over there :
    http://forums.ni.com/t5/Machine-Vision/Using-IMAQ-create-set-up-acquire-and-windraw-to-save-image/m-...
    In the future it helps us stay organized if we limit each issue to a single thread.
    Cheers,
    Andy C.
    Applications Engineer
    National Instruments 

  • How to reverse an image acquired using IMAQ APIs in vc++

    how to reverse an image acquired using IMAQ APIs in vc++

    When using imaqFlip, may the source and destination be the same Image* ?
    TIA!
    Jesse

Maybe you are looking for

  • Itunes stops working when I click a home video with ver 11.1.5.5 win 7 pro 64 bit

    I have home made videos and when I click to open Itunes stops working and box says"Itunes has stopped  working" and says "Windows is checking for a solution to  the problem"  turns out Windows doesn't respond and I have to close the  program..Tried i

  • Error in Special GL Z for vendor

    Hi, I have created one special GL Indicator 'Z' for Vendor for giving advance octoroi to vendor. I have created this 'Z' with reference to  'A'. Now when i am posting entry using special GL Z in F-02 (& not in F-48), then i am not getting baseline da

  • Pictures turn black, unable to edit

    I recently downloaded iphoto '11 and sometimes when I scroll over a picture in turns black and I can't see it. Alternately when I click any of the editing features, for example, straighten, it also turns black and I'm not able to edit either. Is anyo

  • Transferring Itunes Playlists onto new computer!!!

    This weekend I purchased a HP 64 bit tower with Windows Vista. My main concern with making a smooth transition from my old computer: *How do I transfer my Playlists from my old computer (or from my ipod) to my itunes library on my new computer? I hav

  • Fetching data from one internal table and populating into other table

    hi i am working on a report program. here,i have my data in a internal table(having only one field) i.e. only one column in the table. now i want to populate this data into other internal internal table that has 13fields i.e. 13 columns. so could any