Quote:
Originally Posted by bob.wolff68
So, I was hoping to find it as part of BinaryImage:: or MonoImage:: ... the reason is: If we're going to take a ColorImage or HSLImage object and run HSLThreshold() on it, we'll get a BinaryImage as a result. This is fine.
However, after this step, to do the convexHull operation in "raw imaq API style", we would have to do a GetImage() from the BinaryImage and toss that into the imaqConvexHull operation...that's ok, but then we would need to get this back into a BinaryImage in order to run the BinaryImage::GetOrderedParticleAnalysisReports() function and I don't see a way to get 'back' from imaq-land into WPILib C++ land... is there something I'm missing to do that?
Thanks,
bob
|
A BinaryImage just contains a member Image pointer. So you can use binaryImage->GetImaqImage() as your source and destination argument.