| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef _Plaque_interface_h_
- #define _Plaque_interface_h_
- #include "../Pattern/Singleton.h"
- #include "../Container/ExtendedImage.h"
- #include "../Object/point.h"
-
- #include <string>
- #include "CPlaqueResult.h"
- class PlaqueInterface : public Singleton< PlaqueInterface >
- {
- public:
- bool initialize( std::string fileName, double pixelSizeX = -1.0, double pixelSizeY = -1.0 );
- bool initialize( const char* buffer, int width, int height, int bpp, bool upsideDown, double pixelSizeX, double pixelSizeY );
- int OnLButtonUp( int x, int y, CPlaqueResult* result );
- int computePlaque( int x, int y, int nbPts, unsigned char *points, CPlaqueResult* result, int seuil1, int seuil2 );
- int fonctionDebug( CPlaqueResult* result );
- int CalculerPlaqueManuelle( int nbPts, unsigned char *points,CPlaqueResult* result );
- float getDistanceToFirstPoint( int x, int y, int x0, int y0 );
- int getImageWidth();
- int getImageHeight();
- int getImageBitsPerPixel();
- char* getPixelArray();
- Point m_p0;
- protected:
- PlaqueInterface();
- friend class Singleton< PlaqueInterface >;
- private:
- ExtendedImage m_image;
- };
- #endif
|