|
Re: Saving Image from Axis Camera to cRIO
Ok. I may have solved my own problem. If one were to take a look at the BinaryImage source code, it appears to be there.
void BinaryImage::Write(const char *fileName)
{
RGBValue colorTable[256];
Priv_SetWriteFileAllowed(1);
memset(colorTable, 0, sizeof(colorTable));
colorTable[0].R = 0;
colorTable[1].R = 255;
colorTable[0].G = colorTable[1].G = 0;
colorTable[0].B = colorTable[1].B = 0;
colorTable[0].alpha = colorTable[1].alpha = 0;
imaqWriteFile(m_imaqImage, fileName, colorTable);
}
I guess I needed to set up the colorTable properly. I haven't tried this yet, but I can't image that WPILib would have a non-working function.
- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
|