IMAQ resample invalid image type

Hi,
I am rewriting an old non-versatile version of a VI. I don't have much experience but I have the old VI as sort of a template for what I need to do. It's weird but although I try to do things exactly the same way, they don't work.
I acquire a high resolution image from the camera (IMAQ Acquire) which is too big (1280x1024). I want to resample (IMAQ Resample) it to 256x320px.
I get the error message: Error -1074396080 occurred at IMAQ Resample Invalid image type.
The probe I put in to read the Image Src shows the image correctly and tells me it is an unsigned 16 bit image. This should be a valid image type, right?
Dennis
P.S. I use LabView 2009
Solved!
Go to Solution.

Deneck wrote:
I get the error message: Error -1074396080 occurred at IMAQ Resample Invalid image type.
The probe I put in to read the Image Src shows the image correctly and tells me it is an unsigned 16 bit image. This should be a valid image type, right?
No, not right. IMAQ Resample doesn't support U16 type (at least up to VDM2011). Refer to Help.
Convert your image to I16 (if possible) prior to resampling.
Andrey.

Similar Messages

  • LabWindows/CVI and IMAQ - Invalid Image Type when saving bitmap

    I create and image, grab it, then display it, but when I go to save it using imaqWriteBMPFile, I get an error that maps to Invalid Image Type, so I use imaqCast to cast it to an IMAQ_IMAGE_U8 type (which is what the orignal image was created as), then it works, except that my image has changed, that looks like the contrast or something has changed. Any suggestions?
    Attachments:
    image.bmp ‏302 KB

    What kind of camera & IMAQ board are you using? I have seen similar problems when a 12 bit camera is used. The image is acquired as a 16 bit image, and if you just convert it to an 8 bit image, it ends up looking like the one you attached. To correctly convert to 8 bits, you need to shift the appropriate number of bits during the conversion. For a 12 bit camera, that would be 4 bits.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Imaq invalid image type

    Hi,
    i try to analyse a video image. it is an image typ 32 bit rgb. In the sub vi I try to count the pixel with a red value greater than the green and the blue value. Therefore i need to split the colorplanes.
    After that I write the values in an arry to count them.
    Sometimes the Error "Invalid image typ" appears. I´m not sure why this error sometimes appeared and sometimes not.
    I hope someone can help me to find the solution.
    Attachments:
    RED Pixel.vi ‏45 KB

    Hello,
    does the error happen only, when your ROI is passed as an empty cluster? So, if you have an active ROI, there is no error right?
    Make sure your ROI is not empty, or alternatively you could use "IMAQ SetImageSize" after allocating the memory for the mask (set the size to the same size as the input rgb image with "IMAQ GetImageSize".
    Does this help?
    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."

  • Error -1074396077 (IMAQ Vision: Incompatible image type) after running IMAQ Mask

    I am attempting to process color picture of pellet. I want to exclude any particle that touches the edges of the color images. I created mask from original image and used this mask on the original color image to retain only the color particles that don't touch the boundary. The error occured  when I ran the IMAQ Mask. The error message is “Error -1074396077 (IMAQ Vision:  Incompatible image type)”. How can I fix it ?
    I have picture and program as attached.
    Attachments:
    color sorter 01f.vi ‏87 KB
    Red01a1.jpg ‏30 KB

    Hi XuanThuy,
    The IMAQ Cast function is part of the Vision Development Module (VDM), under the Image Management Palette, as indicated by this document: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_cast_image/. If you can't locate it and you indeed have the VDM, there may be an issue with the installation of this module. A similar issue has been encountered and resolved in this forum post: http://forums.ni.com/t5/Machine-Vision/can-t-find-IMAQ-cast-image-vi/td-p/340157. What version of the vision software are you using?

  • I get an 'Invalid Image Type' error when using the Locate Features. (Evaluatio​n version)

    I'm using the Evaluation Version of Vision Builder. I Simulate Acquisition using my own image (jpg), which loads fine. However, when I try to use any of the Inspection Steps features, other than Enhance Images, I get an "Invalid Image Type" error.

    Hello,
    Vision Builder functions usually work with a certain image type. For example, all the functions listed under Binary (in the menubar) will only work with binary images. Likewise, color functions will work for color images and grayscale will work for grayscale images.
    You can convert a color image into a grayscale by extracting a color plane and a grayscale image can be converted to binary using the threshold function.
    Hope this helps!
    Regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Strange behavior with invalid image type error

    Hi,
    I'm currently developing a stereo vision application. I started with the StereoVisionExample provided by NI but want to use my own camera drivers.
    I created the GetImage vi (see attachment) that accepts the camera handle and an allocated image, reads the acquired image from the camera, transforms the image array to a color image and returns it. I tested it with the TestVI (attached) and it works perfectly well.
    Now I wanted to integrate it as image source for the given example application and replace the ExpressVIs but this doesn't work. I get a 1074396080 invalid image type error as soon as the GetImage SubVI is called. The only possibility to run it without an error is to set the image type to RGB64 but in this case the image is not shown correctly. I get the error no matter if I choose Grayscale, HSL or RGB32 for the initial image creation. The strange is that with the TestVI everything works perfect, even with HSL that I'm using to get the grayscale image or RGB32. Basically I didn't do anything except copying the VI from Test to StereoExample. It's driving me crazy that the GetImage VI works perfect in the one but not in the other VI with the same data! What's wrong with that?
    I appreciate your help.
    Attachments:
    getImage.jpg ‏47 KB
    stereoVision example.jpg ‏92 KB
    TestVI.jpg ‏44 KB

    Hello NicoSch!
    In order to reproduce the error, I need the image data generated by the image driver you are using. Please wire the 2D array with the image data to a control on the frontpanel and run the VI. With the data now displayed, right-click the control and choose "Data Operations > Make Current Value Default" to save the data in the control. Please attach the VI to a new forum post.
    Additionally, can you describe the type of image acquired by the camera? Is the 2D array a 32bit RGB image? What camera and LabVIEW version are you using?
    Regards,
      Georg

  • 1394 invalid image type

    I am trying to use the NIIMAQ1394 functions in VB. I finaly figured out how to snap an image into the CWIMAQViewer, but when I try to use it as a CWIMAQViewer.Image after it is displayed in the viewer in a CWIMAQVision Function I recieve invlaid image type error. Below is the code I am trying to use.
    errorCode = imaq1394SnapCW(sid, myImage2)
    If (errorCode <> IMG1394_ERR_GOOD) Then
    DisplayError (errorCode)
    Stopped_Click
    End If
    CWIMAQVision1.Threshold CWIMAQViewer1.Image, myImage, 150, 255
    So what I really want to know is how to you use the images aquired in the NIIMAQ1394 in all these NIVision Functions for Measurement Studio?

    You have to make sure you are capturing the image in MONO form. The CWIMAQVISION cant handle color images from the viewer. It will just crash your whole computer and not give you an error that you may need to use a 8 bit image.

  • Working with Coreco, I get error 1074396072: imaq morphlogy invalid image border

    the morphology gets input from threshold, which send o.k in error out. I work with Coreco, which I heard has some problems in defining the camera type or something

    The morphology function requires some blank space at the edges of the image, which is called a border. You can set the size of the border when you create the image buffer, and you can adjust the size of the border using IMAQ ImageBorderSize.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Invalid image type imaqdx

    Hello,
    I hope that someone helps me to find the error in my VI. I am trying to modify the optical flow feature tracking. So Instead of reading the frame from a folder, I want to collect them from the camera recording.
    You can find attached the VI.
    Thanks for your help.
    Solved!
    Go to Solution.
    Attachments:
    Untitled 5.vi ‏37 KB

    Hello,
    Your problem is improper image allocation. This will work:
    Your code is quite messy...
    Anyway, I had an old example that I modified, maybe you can find it useful (attaching it for Labview 2010).
    Run the program, select the keypoints (hold ctrl + left click for multiple). When selecting keypoints, adding them (via the "add" button) and running the main loop with "continue...",  take care that the object of interest does not move (you can reprogram this at your leisure).
    Hope this helps.
    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."
    Attachments:
    OpticalFlow_live.zip ‏34 KB

  • ReadBarcode (Invalid image type) Capture images with a prosilica camra

    Hello everyone,
    I'm a new user of Labview and making an application that reads barcodes via Prosilica camera, I made a VI, but it gives me the same error again and again.
    I searched the site and found something about ROIToMask, but couldn't use it.
    Can you please give me tips on how to do it.
    I'm uploading the VI file.
    I know that this might be an easy question, but I spend alot of time and at last I deceided to ask you guys.
    Thank you
    Attachments:
    Barcode reader.vi ‏86 KB

    Thanks for your reply, I think that you are right, what I did was I changed the camera settings, so now it reads not as 16 bit, but as 8 bit.
    But now I'm facing another problem with it, when the camera records it gives a message that says :
    Not a linear barcode
    unfortunately I'm not at the lab at this moment so I can't give you the number of the message, but it says as I mentioned. If I use the barcode example of the LabView it works ofcourse, but I justed changed the barcode example of Labview so that it shouldn't read from a file, but it should read via camera, but the Not a linear barcode comes!!!!!!
    The VI file that I uploaded doesn't have any problems you are right but could you please give me some advice on how should I make this VI.
    Thanks again
    Mike

  • Unexpected IMAQ image type conversion indicated

    When wiring an Image to an IMAQ "object"/vi (e.g. Write Custom Data, Image Info, Calibration, ...) a type conversion indicator (grey dot) appears whenever the wire starts at a property node.
    The conversion indicator doesn't appear when wiring from a local variable or an unbundle "object".
    I would expect the value of an image object to behave similarly, regardless whether it is wired from a local variable, unbundle node or property node. Am I getting something wrong, is this a bug, or is there really some data type conversion going on?
    Many thanks for all answers
    Patrick
    Attachments:
    strange_image_type_conversion.vi ‏126 KB

    The image type is a type def.  It appears that the Value returns a non-typedef value.  LV shows a conversion dot whenever you change between a non-typedef and typedef variable, even if they are the exact same structure.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • IMAQ Low pass filter failed with invalid image border.

    Hi Expert,
    I try to use imaqLowPass function. I expect  the input image could be processed by low pass filter.
    But this is a run-time error showed "Invalid image border".
    Can somebody tell me what's going on?
    Solved!
    Go to Solution.

    Problem resolved. 
    I add a border to the image. 
    Needs to take care the border size and filter size.

  • IMAQ Resample performanc​e. Any better choice for 50% downsample​? (average 2x2 - 1 pixel)

    My video source is a 4 Mpixel (2k x 2k resolution) USB3 camera. This is displaying a live image OK in Labview at 45 fps using only 20% CPU.  So far, so good.
    I added a "IMAQ Resample" block to downsize this to 1024 x 1024 image. That works with almost no additional processing time if I select "Zero Order" interpolation (eg. plain subsample to value of nearest pixel). However, I want to average each 2x2 block (4 pixels) in the input image into 1 output pixel. I *think* that is the effect of selecting Bi-Linear interpolation. Doing that works, but takes about 45% of CPU.  I want to do some other processing but am worried I will quickly run out of CPU time and start dropping frames.
    Is there any better way to do this simple 50% downsize (2x2 average), that would take less CPU overhead, or is this the best way?

    Hi jbeale1,
    In NI-MAX (Measurement & Automation Explorer) select your camera. Under the  'Acquistion Attributes' tab do you see an option to change the Video Mode of your camera to a different resolution? If your camera supports it, it would be more efficient to change the resolution there.
    If not , here is a little more info regarding the IMAQ Resample VI:
    http://zone.ni.com/reference/en-XX/help/370281P-01​/imaqvision/imaq_resample/
    You are correct, the Bi-Linear option uses a more intensive interpolation technique which is why it is more taxing on your CPU. I hope this is helpful.
    Robert S.
    Applications Engineer
    National Instruments

  • How do I find the image type of an image file

    This was posted on the LabView forum in error yesterday,  Please excuse the dual post.
    I am trying to open a JPEG image.  If I do not know the image type (8U, 16I, GrayscaleSingle, ... etc)... is there a way to find out that information?
    If you open the file using IMAQ ReadFile...you have to supply a Create Image input to allocate space...the input specifies a type to read...but if the type of the stored data is not the type specified in the read file you either read the file as the type specified, or the file does not produce any values...(and no error is produced).
    Examples:
    Store a JPEG as a Single Percision Floating point image.
    Use a Creat File to specify that the file is read with the following types...with the following results
    Type Specified        Type Read         Resulting image
    U8                               U8                     8 bit image appears
    16I                               16I
    Solved!
    Go to Solution.

    Hummer1,
    There are two methods to accomplish this:
    1) IMAQ GetFileInfo, which has quite a few outputs involving the image details.
    2) Read JPEG File, which you can unbundle the image data output to get the image depth, or other attributes.
    I would reccomend the IMAQ function, due to it being more detailed.
    Hope this helps
    Chris Van Horn
    Applications Engineer

  • ORDImageSignature Invalid data type in Oracle 8i

    hi there,
    i have just started working on Intermedia, i am using Oracle 8i. i have configured the intermedia and executed the ordwebutl.sql file. all othe media data types are working perfectly like, ORDAudio, ORDImage,ORDVideo, but the ORDIMageSIgnature is not working at all. when i use it as data type in any table it says Invalid data type. which means oracle 8i is not recognizing ORDImageSIgnature at all. plz help me as soon as possible. Thanks in advance.

    The ordimagesignature is not something you can see or hear. It is strictly binary metadata about the image, used only to compare images to each other.
    What are you trying to do?
    Larry

Maybe you are looking for