|
Re: NI Vision Functions Documentation and Use
While I don't have answers for you, I am digging in the same hole... and for me, I'm looking at NOT using the raw imaq functions. I'm looking at using the AxixCamera::GetImage followed by using ColorImage::HSLThreshold() which will give back a BinaryImage object. This is where it gets a bit fuzzy. Either you have to take this and simply run the particle analysis and stay in C++ land, or you've gotta do a BinaryImage::GetImage() at this point and pass the resulting Image* to imaqConvexHull() as the src and out to a dest Image*. Then (I think) memcpy() the destination image BACK into the src Image memory location and ultimately "trick" the BinaryImage class by having given it a substitute image ... then run the ParticleAnalysis from there. I plan on trying it both ways. The complexHull would be GREAT to have as part of it so the scoring (per the white paper) would work. If we can't do that, then it'll be more of a matter of dropping all the small particles and just moving forward without the additional scoring.
Thanks,
bob
|