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.

Similar Messages

  • How to solve Error -1074396080 occurred at IMAQ array to color Image

    Hello,
    I am getting above mentioned error.
    Here I have attached my screen shot of the error.
    Could any one Please guide me how to solve this error.
    I am using Kinesthesia kinect driver which generate U24 Bit RGB Image and I want to convert it in IMAQ Image type, But I am getting mentioned error.
    But when I am not using the vision acquisition and vision assistant then every thing is fine means there is no any error which I have attached in attachment 2.
    Please guide me how to solve this problem.
    Thank you very much.
    Solved!
    Go to Solution.
    Attachments:
    invalid image type.png ‏251 KB
    imaq2.png ‏56 KB

    Thank you very much for quick reply.
    I follow your instruction but it give me still same error.
    here in attachment I have attache screen shot as well Vi so you have a look.
    thank you very much once again for help and time.
    Attachments:
    Unbenannt.png ‏174 KB
    kinect templet.vi ‏137 KB

  • I seem to have problems using AdjustHSV node for color replace/adjustment

    I have been using shake for some color adjustment on some high res (16bit) tif files. I have a simple network with the input node. I branch to an AdjustHSV node and then feed the original, the AdjustHSV and a roto shape into a KeyMix node. When I view the output of the KeyMix node and make adjustments to the AdjustHSV node sometimes it works, sometimes not. I am using a P2 proxy with update set to always. It is frustrating as I can't seem to make rhyme or reason to why it works interactive sometimes and other times it just seems to ignore my inputs. What I am doing is I view the output. I double click on the replace color on the HSV node to bring up the color picker and I am slowly moving the replace color in the color wheel to fine tune my color replace.

    rimcrazy wrote:
    I double click on the replace color on the HSV node to bring up the color picker
    Don't double-click. You're selecting the swatch and then deselecting it!
    Click once. When the swatch is selected, you'll see a yellow border around it.
    Les

  • Problem using linear workflow to composite images with nonlinear transparency

    First off: I love what a fully linear workflow does for the proper behavior of gradients, transparency and the like.
    HOWEVER in both Premiere and AE I have found no simple way (within the linear workflow) to properly/accurately composite images that were not linear to start with/have nonlinear alpha channels. For example, I have an 8 bit RGB photoshop file with 2 layers: one with transparency and the other a white background. If I export the transparent layer as a png (or for that matter save it as a standalone psd), bring it into PP or AE and put a white solid behind it, it doesn't look the same as in the original photoshop file unless I turn off "composite in linear color".
    My best workaround so far is to bring the transparent image into AE (working in a linear color space) and manually adjust the gamma of its alpha channel using a combination of of track mattes/levels/shift channels effects to counteract the improper interpretation of the gamma of the alpha channel, since there's no effect or setting to change the linear/nonlinear interpretation of the gamma of the alpha channel.
    Is anyone at Adobe working on addressing this issue? Why isn't there an effect (or setting in "interpret footage") to allow us to specify if the source material has linear or nonlinear gamma? EDIT: I have just realized that there is a color management option in the AE footage interpret dialog (but not PP), but when I attempt to use it with a png it is greyed out/disabled.
    Thanks,
    Henry
    Message was edited by: Henry Reich

    Well, you could just not use PNG but instead TIFF? The behaviors are built into the file format and using a limited 8bit format in a linear workflow doesn't make that much sense in the first place...
    Mylenium

  • Problems Using an Array of Objects

    I have taken some time off from java and have aparently forgot something. I have a program which has one parent class "Car" with three child classes"Sedan", "Sport", "Suv" and one interface. The "Car" class contains three accessor and mutator methods, and the child classes also have three accessor and mutator methods. In my main I create an array Car[] carArray = new Car[6]; and instantiate. I can call the methods of the parent class but am unable to call the methods of the child classes. I need a little help to get me in the right direction to get these cobwebs out of my skull. Here is a sample of what I'm doing:
    //from my main method
    Car[] carArray = new Car[3];
    carArray[0] = new Sport("Chev", "Camaro", 1995, 4500.67, 120000);
    carArray[1] = new Sedan("Ford", "Taurus", 1997, 3689.55, 40000);
    carArray[2] = new Suv("Honda", "Pilot", 2003, 6955.99, 67000);
    for(int i = 1; i < carArray.length(); i++)
        carArray.getYear(); //getYear() is from the parent "Car" class and works just fine.
    carArray[i].getValue(); //getValue() also from the parent "Car" class and works just fine.
    carArray[i].getMiles(); //getMiles() from parent "Car" class and works.
    carArray[i].getMake(); //getMake() is part of the child class and gives me an error: "cannot find symbol. symbol: variable getMake()
    carArray[i].getModel(); //getModel() is also a part of the child classes and also cannot find symbol.
    {code}
    I have imported my package with my parent and child classes correctly and have tried putting them all in the same folder, so I think I have a failure in logic. Can someone help me straighten this out in my head? :) Much thanks

    "Is it A or B"?
    "Yes"
    Meaning "either one."
    The parent class doesn't have to be abstract as far as Java is concerned, but it seems to me you'd want it to be abstract. Will you ever be creating just a plain old Car (as opposed to a Sedan or Suv)?
    You just said "doesn't work," without providing any details about what you tried or what the exact problems was, so it's impossible to offer any specific, concrete advice. Here's an example that shows one way things might fit together.
       * inteface, to define the type, with 3 methods: add(), iterator(), and contains()
      public interface List {
        boolean add(Object obj);
        Iterator iterator();
        boolean contains(Object obj);
       * abstract base class, to implement methods that don't depend on specific implementations
       * (just contains() in this case
      public abstract class AbstractList implements List {
        public boolean contains(Object obj) {
          for (Iterator iter = iterator(); iter.hasNext ();) {
            if (iter.next ().equals (obj)) {
              return true;
          return false;
       * concrete subclass
       * provides concrete methods that depend on the specific implementation
      public class ArrayList extends AbstractList {
        private Object[] elements = new Object[256];
        int size = 0;
        public boolean add(Object obj) {
          if (size == elements.length) {
            // create a larger array and copy over existing elements
          elements[size++] = obj;
          return true;
         * anonymous inner class that implements Iterator
        public Iterator iterator() {
          return new Iterator() {
            private int nextIndex = 0;
            public boolean hasNext () {
              return nextIndex < size;
            public Object next () {
              return elements[nextIndex++];
      }A few things to note:
    0. The above are based on the classes of the same names in java.util, but are stripped down for simplicity. If something doesn't look right (like missing methods on List and Iterator) it was done to keep the example clean and simple.
    1. We could skip either the interface or the abstract class or both, or the abstract base class could be concrete. Java doesn't care. We do what makes sense for our design.
    2. Here we define an interface because we want to define a pure type with no implementation. Anybody anywhere can implement a List however they want, and as long as it meets the contract of our interface, it can be used by any code expecting a List.
    3. We define the base class AbstractList because there are methods that have a reasonable default implementation that can be reused by subclasses. In this case, contains() doesn't do anything that depends on the specific implementation, so it can be defined in the base class. All the subclasses can use that implementation of contains(). Of course, any subclass is still free to override contains() to provide its own implementation if it wants.
    4. An implementation of List can extend the base class, AbstractList, but it doesn't have to. It could just implement List and provide its own implementation of contains().
    5. The base class is abstract because some methods don't have a default implementation that can be reused. Both add() and iterator() depend on the specifics of the implementation. They both need direct access to the internal backing store. If we had another concrete implementation, LinkedList, its backing store would be a privately defined class of Node that contains the elements and pointers to previous and next. There would be no array, and add() and iterator() would be written very differently. There's no way we could have written add() and iterator() in a way that would have worked for both backing stores.
    6. All methods in an interface are public and abstract, even if you don't declare them that way.
    7. A class that implements an interface or extends an abstract class must provide implementations for all the abstract methods in both, or else must be itself declared abstract.
    8. When a class extends another class, it also implicitly implements all the interfaces that the parent class does.
    9. A class with one or more abstract methods must be declared abstract, but any class can be declared abstract, even if it has no abstract methods.
    Edited by: jverd on Mar 27, 2010 9:12 AM

  • Problem using text boxes as the "image" to drag and drop over audio file

    I have been adding audio files to my page in iWeb (previous version, not '08), but I am having a problem giving them titles.
    When you first drag a file from iTunes into iWeb, it provides a space for you to drag and drop a picture. The online iWeb guide also says that you can drag a text box there instead of a picture.
    I created a text box with the text I would like to drop over the controller. However, it is no longer allowing me to drop the text box there. I used to be able to do this, and I don't know what I'm doing differently now. Any suggestions?
    Thanks!
    -- Will

    foobar2000 with the ipod plugin will allow you to drag/drop FLAC files and when it syncs the ipod, it converts the FLAC files on the fly. MUCH better than dealing with the crappy iTunes interface and having to pre-convert the files. I absolutely loathe iTunes and it just gets worse and worse!

  • Problem using weblogic6.1 to show image via JSP

              I am trying to load an image from database,we use Oracle8, the data type of the
              image field is Long Raw.
              The following code can work on Tomcat, that is it can show the image, but on weblogic
              it can not.
              <%@ page import="java.sql.*,javax.servlet.*,java.io.*" %>
              <%
              //Define the database connection: bedb
              %>
              <%
              response.setContentType("image/gif");
              ServletOutputStream ot = response.getOutputStream();
              BufferedOutputStream os = new BufferedOutputStream(ot);
              byte[] b = null;
              String m_Sql="select image from Image";
              ResultSet rsimage = bedb.executeQuery(m_Sql);
              if (rsimage.next())
              b=rsimage.getBytes(1);
              if(b!=null)
              os.write(b);
              os.flush();
              os.close();
              %>
              

    If you look at the generated code, you will see that there are newlines
              inserted before your image data. Your safest bet is to use servlet instead of
              JSP to generate binary data.
              nova <[email protected]> wrote:
              > I am trying to load an image from database,we use Oracle8, the data type of the
              > image field is Long Raw.
              > The following code can work on Tomcat, that is it can show the image, but on weblogic
              > it can not.
              > <%@ page import="java.sql.*,javax.servlet.*,java.io.*" %>
              > <%
              > //Define the database connection: bedb
              > ........
              > %>
              > <%
              > response.setContentType("image/gif");
              > ServletOutputStream ot = response.getOutputStream();
              > BufferedOutputStream os = new BufferedOutputStream(ot);
              > byte[] b = null;
              > String m_Sql="select image from Image";
              > ResultSet rsimage = bedb.executeQuery(m_Sql);
              > if (rsimage.next())
              > {
              > b=rsimage.getBytes(1);
              > }
              > if(b!=null)
              > {
              > os.write(b);
              > }
              > os.flush();
              > os.close();
              > %>
              Dimitri
              

  • Re: Problem using weblogic6.1 to show image via JSP

              Thanks.
              But why on Tomcat it can work ??
              

    In the past, I have used O'Reilly's servlet package for multipart forms
              and uploading files. You can download it from http://www.servlets.com.
              There should also be examples on how to handle multipart forms, so I
              would suggest having a look.
              Hope that helps,
              Nils
              baiju wrote:
              >
              > hey all
              >
              > I have a form that will upload couple of files and is designed using
              > a form with
              > : the enctype="multipart/form-data". I would like to be able to send a
              > couple of
              > : other test fields in the same form. The problem is that the
              > recieving jsp page
              > : cannot seem to interpret the text fields. Any ideas on how to
              > retrieve the
              > : values from those fields?
              > : ** Currently using Request("FieldName")
              > :
              > cheers, baiju
              ============================
              [email protected]
              

  • Problem using an array of MCs for a menu

    I'm creating an animated menu using a series of MCs and wrote
    a function to reset them back to frame 1 whenever you choose a new
    menu item. I couldn't get it to work so I did a trace to see if I
    could even get the value of the current MC's frame & I get
    "undefined". I only have 2 MCs in the array right now to keep
    things simple. Any idea of what I'm doing wrong?

    Hi,
    there is a simple way to achieve that.. Put all your buttons
    in one mc and call that mc buttonsMc.
    With a for in loop you will be able to do what you want. Ill
    post a version that will escape the movieclip button that is
    pressed; mainly because usually you want to reset all the other
    buttons but not the one pressed. You just have to pass as a
    parameter the name of the movieclip button to the function .. here
    is the code:

  • Problem using associative arrays in vb6 with ORAOLEDB for Oracle 10g

    The following vb6-code works fine with MS OLEDB (in MDAC 2.8) but not with Oracles OLEDB for 10g. Any suggestions for making it work?
    'vb6-code:
    Set rs = New ADODB.Recordset
    Set rs.ActiveConnection = oConn 'oConn is already initiaded - code not included here.
    rs.Source = "{call PCK_PW_RF_PERSON.P_PW_BIRTHDAY('BURSDAG','2008','01',{resultset 200000, PARAM1,PARAM2,PARAM3})}"
    rs.LockType = vntLockType
    rs.CursorLocation = adUseClient
    rs.CursorType = vntCursorType
    rs.Open
    Databaseobjects involved:
    PACKAGE "PCK_PW_RF_PERSON" IS
    TYPE     tpv_param1     IS TABLE OF VARCHAR2     INDEX BY BINARY_INTEGER;
    TYPE     tpv_param2     IS TABLE OF VARCHAR2     INDEX BY BINARY_INTEGER;
    TYPE     tpv_param3     IS TABLE OF VARCHAR2     INDEX BY BINARY_INTEGER;
    PROCEDURE P_PW_BIRTHDAY
         pv_i_sreportid          IN VARCHAR2,
         pv_i_year          IN VARCHAR2,
         pv_i_month          IN VARCHAR2,
         PARAM1               OUT tpv_param1,
         PARAM2               OUT tpv_param2,
         PARAM3               OUT tpv_param2
    IS
         CURSOR X IS select '1' AS PARAM1,'2' AS PARAM2,'3' AS PARAM3 FROM DUAL;
         i NUMBER DEFAULT 1;
    BEGIN
         FOR c IN X LOOP
              PARAM1(i)           := c.PARAM1;
              PARAM2(i)           := c.PARAM2;
              PARAM3(i)          := c.PARAM3;
              i := i + 1;
         END LOOP;
    END P_PW_BURSDAG;

    I receive this error:
    "ORA-06550: line 1, column 111:
    PLS-00201: identifier 'PARAM1' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"

  • Display a color image in front panel.

    Hi there,
    How do I display a color image in front panel? Which graphic indicator should be used to display a color image? I do not want to use Imaq WindDraw.
    Thanks in advance.
    Hugh

    Try this "draw flatten jpg to pic ctrl.vi"
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    draw_flatten_jpg_to_pic_ctrl.vi ‏35 KB

  • Imaq mask on U16 image

    Hello!
    Can someone please explain to me the following:
    I can use IMAQ  mask on every image type except for the U16. Why is that?
    Please see the trivial example below.
    I am using Labview 8.6 professional.
    Thank you and best regards!
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

    Your Vision Development Module seems to be too old. Support for U16 was covered partially in early versions. Try version 2010 or latest Vision 2011 - for me IMAQ Mask works with U16 image. Both VDM 2010 and 2011 are compatible with LabVIEW 8.6.
    Andrey.

  • 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 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

  • Could not complete the command because of a problem using the Adobe Color Engine

    Hi all
    This bizarrely started this morning - completely out of the blue - and I've no idea why.
    Setup: Mac 10.8.2 / Creative Suite Premium PhotoShop CS5 extended (patched to 12.04)
    Am working on images exported from LightRoom 4 (16bit A3 Pro Photo RGB PSDs) in PhotoShop CS5.
    As part of my image grading process I have a PhotoShop Action that does the following: copy layer to new document (document respects all of copied layer settings) > Image > Adjustments > HDR toning > apply a certain HDR preset > copy to resultant image back to original doc > set opacity as 40%.
    Totally out of the blue, after having this action for about 2 months, this morning I start getting a warning dialog of "Could not complete the command because of a problem using the Adobe Color Engine" and the action fails. The failure seems to take place at the 'make document' part of the action and seems to somehow be related to the contents of the clipboard.
    I've tried trashing and re-creating the action. It works first time out fine and then - on the next image - errors again.
    At present I can only safely carry out the work 'manually' by completing all the actions myself.
    I can think of no settings that have changed and the OS hasn't been updated in a while.
    I have found one other thread on a similar problem in PhotoShop Elements, but no definitive solution.
    Any help appreciated as I have a shedload of stuff to process.
    Best wishes
    TP

    OK: trash of prefs didn't work. Tried thrice. Re-created orig action. same problem.
    BUT!
    Your 'Image > Duplicate' suggestion does seem to work. If I use that in a new action as the method for creating the HDR version doc (instead of 'Select > Copy > New > Paste), it seems to work.
    Will try that out this afternoon, but for now: WIN!
    Many thanks for the suggestion!
    TP

Maybe you are looking for

  • Any suggestions on T2000 disk detection?

    We bought 2 used T2000 with 2 72GB disks in each.  Initially the one we tested seemed to run OK. Then we had a requirement to use the system with 4 disks. Initially the system was running Solaris 10 fine with ZFS mirrored disks in slots 0 and 1. Addi

  • Can you call a class method as an RFC function

    Hi I would like to know whether it is possible to instantiate a class in another system via RFC and then call a method eg. cl_abap_typedescr=>describe_by_name, of that class in the other system like you can with an RFC enabled function. Thanks Faaiez

  • Poor Flash Player Performance in Mozzilla Firefox

    Hello! I have recently noticed that Adobe Flash Player has very bad performance in Mozzilla Firefox. The most common issue is with 4K YouTube videos. I have a GTX 770 graphics card, so there should not be any problem with these videos, and there is n

  • What causes this error?

    I am using OID 11.1.1.6 oracle.security.idm.ObjectNotFoundException: No Relations Found   at oracle.security.idm.providers.stdldap.util.IdentityRelationsSearchResponse.<init>(IdentityRelationsSearchResponse.java:138)   at oracle.security.idm.provider

  • Is it necessary to use the optical audio port on the apple tv

    Do I have to have an optical audio cord to get sound on the apple tv