View Single Post
  #1   Spotlight this post!  
Unread 24-01-2012, 18:55
Jmoo Jmoo is offline
Registered User
AKA: Jay Meldrum
None #0067
Team Role: Engineer
 
Join Date: Jun 2003
Rookie Year: 2012
Location: Michigan
Posts: 16
Jmoo is an unknown quantity at this point
IMAQ Vision: The image is not large enough for the operation

Anyone run into this error before?

Error from the cRIO:

<CODE>-1074396154 ERROR: status = -1074396154 (0xBFF60406)ImaqThreshold error: ....in ComputeThreshold() in C:/WindRiver/workspace/WPILib/Vision/ColorImage.cpp at line 37
IMAQ Vision: The image is not large enough for the operation

Here is a sample of the code:

Code:
m_robotDrive->SetSafetyEnabled(false);
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteBrightness(0);
camera.WriteResolution(AxisCamera::kResolution_320x240);
Wait(3.0); 	

ColorImage img(IMAQ_IMAGE_HSL);
camera.GetImage(&img);
BinaryImage* binImg = img.ThresholdHSL(121, 165, 2, 250, 109, 255);
Reply With Quote