| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #include "StenoseInterfaceDLL.h"
- #include "StenoseInterface.h"
- #include "CStenoseResult.h"
- #include "StenoseResult.h"
- #include "../Object/point.h"
- bool stenose::initializeFromFile( const char* fileName, double mmPerPixelX, double mmPerPixelY )
- {
- return StenoseInterface::getInstance().initialize( fileName, mmPerPixelX, mmPerPixelY );
- }
- bool stenose::initializeFromRaw( const char* pixelArray, int width, int height, int bitsPerPixel, bool upsideDown, double mmPerPixelX, double mmPerPixelY )
- {
- return StenoseInterface::getInstance().initialize( pixelArray, width, height, bitsPerPixel, upsideDown, mmPerPixelX, mmPerPixelY );
- }
- bool stenose::Threshold_2(int iMax, int left, int top, int right, int bottom, int ptx, int pty, stenose::StenoseNBResult* result )
- {
- bool status;
- if ( !result )
- {
- return false;
- }
- CStenoseResult stenose_result;
- status = StenoseInterface::getInstance().Threshold_2( iMax, left, top, right, bottom, ptx, pty, &stenose_result );
- status = stenose_result.fillNB( result );
- return status;
- }
- bool stenose::Measure( int left, int top, int right, int bottom, stenose::StenoseResult* result )
- {
- if ( !result )
- {
- return false;
- }
- CStenoseResult stenose_result;
- bool status = StenoseInterface::getInstance().Measure( left, top, right, bottom, &stenose_result );
- stenose_result.fill( result );
- return status;
- }
-
- int stenose::getImageWidth()
- {
- return StenoseInterface::getInstance().getImageWidth();
- }
- int stenose::getImageHeight()
- {
- return StenoseInterface::getInstance().getImageHeight();
- }
- int stenose::getImageBitsPerPixel()
- {
- return StenoseInterface::getInstance().getImageBitsPerPixel();
- }
- char* stenose::getPixelArray()
- {
- return StenoseInterface::getInstance().getPixelArray();
- }
-
|