Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

color image to grayscale

Solved!
Go to solution

can someone please help me.

i am stuck on this problem.

i have this program that would analyze and draw overlay "crosshairs"

but i am getting errror when working with color images.

 

 

IMAQ Match Geometric Pattern 2
  Invalid image type.

 

 untitled.PNG

 

 

Best regards,
Krispiekream
0 Kudos
Message 1 of 5
(3,907 Views)

Check whether you have any of the following issues.

 

1. You are not extracting the color planes (like luminance).

 

2. You are not defining a seperate buffer while extracting. (Img dst)

 

3. You are defining a wrong buffer type in img dst. (if you are using a jpg or a png image then you should define a RGB in the image type) it would give you an error if you have just connected the imaq to the img dst

Message 2 of 5
(3,894 Views)
Can you attach your vi for lv 8.0 or post a screen shot?
Message 3 of 5
(3,893 Views)
Solution
Accepted by topic author krispiekream

I am getting a "invalid template" error when i tried your template. I have created a new one. Try this if it works.

 

 

Download All
Message 4 of 5
(3,891 Views)
Also remember I created the template from vision assistant. I feel it is always better to do it that way.
0 Kudos
Message 5 of 5
(3,832 Views)