View Single Post
  #8   Spotlight this post!  
Unread 23-01-2012, 11:17
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: convexHull in WPILib ??

Quote:
Originally Posted by bob.wolff68 View Post
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.
Reply With Quote