| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #include "EIMInterfaceDLL.h"
- #include "EIMInterface.h"
- #include "CEIMResult.h"
- #include "EIMResult.h"
- #include "../Object/point.h"
- bool imt::initializeFromFile( const char* fileName, double mmPerPixelX, double mmPerPixelY )
- {
- return EIMInterface::getInstance().initialize( fileName, mmPerPixelX, mmPerPixelY );
- }
- bool imt::initializeFromRaw( const char* pixelArray, int width, int height, int bitsPerPixel, bool upsideDown, double mmPerPixelX, double mmPerPixelY )
- {
- return EIMInterface::getInstance().initialize( pixelArray, width, height, bitsPerPixel, upsideDown, mmPerPixelX, mmPerPixelY );
- }
- bool imt::setFirstPoint( int x, int y )
- {
- return EIMInterface::getInstance().setFirstPoint( x, y );
- }
- float imt::getDistanceToFirstPoint( int x, int y )
- {
- return EIMInterface::getInstance().getDistanceToFirstPoint( x, y );
- }
- bool imt::setSecondPoint( int x, int y, imt::IMTResult* result )
- {
- if ( !result )
- {
- return false;
- }
- CEIMResult eim_result;
- bool status = EIMInterface::getInstance().setSecondPoint( x, y, &eim_result );
- status |= eim_result.fill( result );
- return status;
- }
- int imt::getImageWidth()
- {
- return EIMInterface::getInstance().getImageWidth();
- }
- int imt::getImageHeight()
- {
- return EIMInterface::getInstance().getImageHeight();
- }
- int imt::getImageBitsPerPixel()
- {
- return EIMInterface::getInstance().getImageBitsPerPixel();
- }
- char* imt::getPixelArray()
- {
- return EIMInterface::getInstance().getPixelArray();
- }
|