Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Thresholding using Algorithm

Hi everyone. I'm new to this site, and to Labview. So i hope you guys can help my in solving my problem.

I'm trying to create an object counting program which not entirely use the ready made built in tools in Labview (use my own codes, and new Sub VI). I'm currently trying to apply colour thresholding using Otsu Method which is requiring me to apply some algorithm. The thing is, i am so new in using Labview, so its kinda hard for me to do it. Can you guys help me solving my problem? Basically, these are the things that I need to know:

1) How to extract data from arrays (i use array to show the pixel data) and put it into the algorithm

2) I'm using mathscript for the algorithm but it shows error (i'm writing the algorithm in Matlab format).

3) How to apply the algorithm to produce new image?

 

Lots of thanx! :manwink:

0 Kudos
Message 1 of 2
(3,802 Views)

If I understand you correctly, you want to use a MathScript node to do the image processing on an image that has been converted to an array, then convert the resulting array back to an image?  I have attached an example that shows the basic code for this.

0 Kudos
Message 2 of 2
(3,613 Views)