StenoseInterface.h 1004 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _Stenose_interface_h_
  2. #define _Stenose_interface_h_
  3. #include "../Pattern/Singleton.h"
  4. #include "../Container/extendedimage.h"
  5. #include "../Object/point.h"
  6. #include "CStenoseResult.h"
  7. #include <string>
  8. class StenoseInterface : public Singleton< StenoseInterface >
  9. {
  10. public:
  11. bool initialize( std::string fileName, double pixelSizeX = -1.0, double pixelSizeY = -1.0 );
  12. bool initialize( const char* buffer, int width, int height, int bpp, bool upsideDown, double pixelSizeX, double pixelSizeY );
  13. bool Threshold_2( int iMax, int left, int top, int right, int bottom, int ptx, int pty, CStenoseResult* resultNB );
  14. bool Measure( int left, int top, int right, int bottom, CStenoseResult* result );
  15. int getImageWidth();
  16. int getImageHeight();
  17. int getImageBitsPerPixel();
  18. char* getPixelArray();
  19. protected:
  20. StenoseInterface();
  21. friend class Singleton< StenoseInterface >;
  22. private:
  23. ExtendedImage m_image;
  24. };
  25. #endif