View Single Post
  #2   Spotlight this post!  
Unread 19-01-2015, 18:08
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Re: WPILib vision error in ColorImage.cpp and BinaryImage.cpp

Here is line 37 of the ColorImage.cpp

Code:
 BinaryImage * ColorImage::ComputeThreshold(ColorMode colorMode,
                 int low1, int high1,
                 int low2, int high2,
                 int low3, int high3)
 {
         BinaryImage *result = new BinaryImage();
         Range range1 = {low1, high1},
                 range2 = {low2, high2},
                 range3 = {low3, high3};
         
         int success = imaqColorThreshold(result->GetImaqImage(),   
m_imaqImage, 1, colorMode, &range1, &range2, &range3);

         wpi_imaqAssert(success, "ImaqThreshold error"); 
//here's the assert that's producing the error. What can I do to fix this?
         return result;
}
Note that an assert is failing. What can I do to rectify this on my end?
Thanks.