ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Library IEVision : 'TIEMask' -> '_di_IIEMask'
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aouatif

8 Posts

Posted - Feb 22 2018 :  08:30:05  Show Profile  Reply
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

aouatif

8 Posts

Posted - Feb 22 2018 :  09:47:59  Show Profile  Reply
Problem resolved :

ws->getSelectionMask((PRetoucheMainForm->MainImageEnView->SelectionMask->operator IIEMask *()), int(ZoneColor[_zone]));


Best regards
Aouatif
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: