10-08-2013 07:16 AM
I got an image that is in grayscale u8
I've tried to make it into a purple line but it failed
can anyone help me?
(vi below)
10-09-2013 12:51 AM
Hello,
you are passing only image size, but no image data to the IMAQ reference.Why are you using 2D picture control?
Is the 8-bit grayscale image located on your disk? Then use "IMAQ read file" to load an image directly as a "purple line" reference.
If you already have a 2D picture, you can pass this data to the IMAQ reference as is shown here:
http://forums.ni.com/t5/Machine-Vision/How-to-display-a-purple-line-image/m-p/2536974#M39736
Best regards,
K
10-09-2013 01:26 AM
Is there any vi can transform a U16 array image into an IMAQ image ?(purple)
10-09-2013 01:29 AM
That would be "IMAQ ArrayToImage".
Best regards,
K
10-09-2013 01:57 AM - edited 10-09-2013 02:03 AM
I made a new vi (first file) that should transform U16 into imaq image
but error says it's not an image
(the second file is the camera's example which transform U16 into picture)
10-09-2013 02:24 AM
I do not get any errors when running both attached codes. Only the image will be empty, since the input array is also empty. The second attached code only converts 16-bit to 8-bit so that the 16-bit maximum value has an 8-bit value of 255.
What are you trying to do?
Best regards,
K
10-09-2013 02:59 AM
I want to send the image into vision assistant so that I can analyze it
10-09-2013 03:47 AM - edited 10-09-2013 03:49 AM
If I understand correctly, your camera returns an image with U16 datatype? Also, you then convert it to U8 datatype right? Be aware that some functions accept only U8 datatypes. Try the following.
Best regards,
K
10-09-2013 05:01 AM
vision assistant still output an error "not an image"
here's the code I modified
10-09-2013 05:05 AM - edited 10-09-2013 05:06 AM
Like i said, i get no error here. You need to attach the Vision Assistant code also in order to reproduce the error. And also the input U16 image. You can use "make current values default" after populating the 2D array.
Best regards,
K