| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef _Stenose_interface_h_
- #define _Stenose_interface_h_
- #include "../Pattern/Singleton.h"
- #include "../Container/extendedimage.h"
- #include "../Object/point.h"
- #include "CStenoseResult.h"
- #include <string>
- class StenoseInterface : public Singleton< StenoseInterface >
- {
- 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 );
- bool Threshold_2( int iMax, int left, int top, int right, int bottom, int ptx, int pty, CStenoseResult* resultNB );
- bool Measure( int left, int top, int right, int bottom, CStenoseResult* result );
-
- int getImageWidth();
- int getImageHeight();
- int getImageBitsPerPixel();
- char* getPixelArray();
-
- protected:
- StenoseInterface();
- friend class Singleton< StenoseInterface >;
- private:
- ExtendedImage m_image;
- };
- #endif
|