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
 ImageEnView1.Proc.EdgeDetect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Mar 05 2012 :  13:59:25  Show Profile  Reply
Hello,
I use ImageEnView1.Proc.Blur with a selection, so that works out.
If I use ImageEnView1.Proc.EdgeDetect with a selection however,
then, the entire picture is processed. Why?


253.6 KB


503.44 KB

Klaus
www.klausdoege.de

fab

1310 Posts

Posted - Mar 05 2012 :  14:23:48  Show Profile  Reply
Hello,
because edge detect (EdgeDetect_ShenCastan) converts the image to black/white (PixelFormat becomes ie1g). An image cannot be part B/W and part RGB.
This happens even with EdgeDetect_Sobel where a conversion to ie8g or ie1g can be done on some circumstances.
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Mar 05 2012 :  15:07:12  Show Profile  Reply
Hello Fabrizio,
it would be possible to copy the selection mask in a Layermask.
Then, I could realize it on the basis of a layer.

Klaus
www.klausdoege.de
Go to Top of Page

fab

1310 Posts

Posted - Mar 06 2012 :  00:19:19  Show Profile  Reply
Hello,
you could create a new layer from current selection with LayersCreateFromSelection(), and then apply EdgeDetect, convert the layer to 24 bit and finally merge back with the background.

Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Mar 07 2012 :  10:52:43  Show Profile  Reply
Hello,
tks, i will do it.

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: