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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Library IEVision : 'TIEMask' -> '_di_IIEMask'

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
aouatif Posted - Feb 22 2018 : 08:30:05
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
1   L A T E S T    R E P L I E S    (Newest First)
aouatif Posted - Feb 22 2018 : 09:47:59
Problem resolved :

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


Best regards
Aouatif