1. Copy the image/layer (as in Edit->Copy)
2. Enter QMask mode
3. Paste the copied data into the QMask
4. Anchor the floating layer created by pasting.
5. Exit QMask
If the edge-detection algorithym you're using only cares about overall intensity (greylevel) rather than color (RGB), you could even perform the edge-detection while you were in QMask mode.
So, maybe this is what you want:
1. Copy the original data
2. Enter QMask mode
3. Paste and Anchor.
4. Edge-detect.
5. Exit QMask mode.
If the edge-detection algorithym does work properly on the grey version of the image, this method will be the easiest + quickest.
Doing it automatically as part of a plugin is somewhat different: I Named Copy the image/layer, Named Paste it into a new channel, Load the new channel using gimp-selection-load PDB function, and finally delete the buffer that was created by Named Copy.
Take your pick.
On 9/15/06, Alexander Rabtchevich <alexander.v.rabtchevich@xxxxxxxxxxxxxxx
> wrote:
Some plug-ins (edge detection for example) provide images as a result.
If their result is required as a selection, I new only one way to make
it: create layer mask, copy the image into the mask and convert the mask
into selection. Is there a shorter way to do it?
More common question: maybe it worth improving such plug-ins with an
option "Create selection"?
--
With respect
Alexander Rabtchevich
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
_______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer