Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert grayscale image to binary in vision assistant

I am trying to understand the particle filter feature of Vision Assistant but get an Invalid Image Type error.  The error specifies that the type of the image is 8 bit but the Particle Filter step only supports the following image type: binary.  The steps I have done is read jpeg (color) image and extracted the HSI-intensity plane.  Is there something else I must do first?

 

The only options available to me under the conversion setup is From 8 bit to either 16 bit [-32768, 32768] or Float ]-Inf, +Inf[.

 

I appreciate any help!

 

 

0 Kudos
Message 1 of 5
(11,697 Views)

Use Threshold to convert the grayscale image to a binary image.  You can either use automatic thresholding or set a fixed threshold level.  There are several options for automatic thresholding.

 

Bruce

Bruce Ammons
Ammons Engineering
Message 2 of 5
(11,687 Views)
What bruce has suggested is correct. Since you are starting with  a jpeg image let me just add a couple of points. Under "color" tab you can see "color plane extraction". I typically extract the luminance plane. Now the image is a greyscale one. Now apply threshold to convert this into a binary image.
Message 3 of 5
(11,679 Views)

Thanks all!  The step I was missing was the thresholding!

 

 

0 Kudos
Message 4 of 5
(11,662 Views)

 


The step I was missing was the thresholding!

 

 

Welcome to image processing. You have just kept your first "step" :smileywink:

0 Kudos
Message 5 of 5
(11,660 Views)