ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

array to image

HI 

I change a image to array in labview.
I want to this array to image.
Why dose not this change?
Can you help me please?

Message Edited by Naser1363 on 08-13-2008 01:10 PM
0 Kudos
Message 1 of 4
(5,082 Views)

Your code seems to work just fine for me.  Could you include a screen shot of what you are seeing and/or perhaps the image you are using?

 

Kyle V

0 Kudos
Message 2 of 4
(5,064 Views)

Hi Naser,

 

It might have to do with the type of image that you input from the file.  The IMAQ Create VI creates a buffer for an 8-bit image unless otherwise specified.  You could try either setting the IMAQ Create VI to something other than 8-bit, or you could try including an IMAQ Cast Image VI at the front of the code to make sure that the image type is correct.  When I ran the code with an 8-bit image, it worked fine, but when I ran it with a color image, I began to see problems.  Could this perhaps be what is going on here?

 

Message Edited by Wes P on 08-14-2008 07:36 AM
Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 3 of 4
(5,043 Views)

 


Wes p Wrote:

 

It might have to do with the type of image that you input from the file.  The IMAQ Create VI creates a buffer for an 8-bit image unless otherwise specified.  You could try either setting the IMAQ Create VI to something other than 8-bit, or you could try including an IMAQ Cast Image VI at the front of the code to make sure that the image type is correct.  When I ran the code with an 8-bit image, it worked fine, but when I ran it with a color image, I began to see problems.  Could this perhaps be what is going on here?


Ys that is my guess too.What is the camera u r using?

 

0 Kudos
Message 4 of 4
(5,010 Views)