WPILib 2012
WPILibRoboticsLibraryforFRC
Vision/ImageBase.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef __IMAGE_BASE_H__
00008 #define __IMAGE_BASE_H__
00009 
00010 #include <stdio.h>
00011 #include "nivision.h"
00012 #include "ErrorBase.h"
00013 
00014 #define DEFAULT_BORDER_SIZE 3
00015 
00016 class ImageBase : public ErrorBase
00017 {
00018 public:
00019         ImageBase(ImageType type);
00020         virtual ~ImageBase();
00021         virtual void Write(const char *fileName);
00022         int GetHeight();
00023         int GetWidth();
00024         Image *GetImaqImage();
00025 protected:
00026         Image *m_imaqImage;
00027 };
00028 
00029 #endif
 All Classes Functions Variables