Author |
Topic |
|
klausdoege
Germany
389 Posts |
Posted - Mar 05 2012 : 13:59:25
|
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
|
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. |
|
|
klausdoege
Germany
389 Posts |
Posted - Mar 05 2012 : 15:07:12
|
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 |
|
|
fab
1310 Posts |
Posted - Mar 06 2012 : 00:19:19
|
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.
|
|
|
klausdoege
Germany
389 Posts |
|
|
Topic |
|