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
(4,869 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
(4,851 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
(4,830 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
(4,797 Views)