Hi,
I have a compilation error with some IEvision code.
I m using ImageEn 7.5, and I m trying to implement the same functions as the demo 'WathershedSelection on C++.
//Init
_di_TIEVisionWatershed ws;
IEVisionLib()->createWatershed(ws);
ws->setInputImage(ImageEnView->Layers[0]->Bitmap->GetIEVisionImage());
ws->setMarkers(0);
//--Some code
//To select a zone
ws->setMarkers(ImageEnView->Layers[1]->Bitmap->GetIEVisionImage());
ImageEnView->Layers[1]->Bitmap->Origin = ieboBOTTOMLEFT;
ws->run();
ImageEnView->Deselect();
ws->getSelectionMask(*(ImageEnView->SelectionMask), int(ZoneColor[_zone]));
ImageEnView->SelectCustom();
When compiling this code I've got the error :
for the function's 'getSelectionMask' parameter-> Cannot convert 'TIEMask' to '_di_IIEMask'
I check the header files "ievision.hpp" :
virtual HRESULT __safecall getSelectionMask(Hyiedefs::_di_IIEMask selectionMask, int markerLabel) = 0 ;
And "ImageEnView.hpp"
class PASCALIMPLEMENTATION TImageEnView : public Ieview::TIEView
{
...
__property Iexbitmaps::TIEMask* SelectionMask = {read=fSelectionMask};
...
}
Any idea what's wrong with the function 'getSelectionMask'?
Best regards
Aouatif