RSS/Atom feed Twitter
Site is read-only, email is disabled

what algorithm is used in Ctrl-K?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

what algorithm is used in Ctrl-K? zhang chi 01 Mar 15:08
  what algorithm is used in Ctrl-K? saulgoode@flashingtwelve.brickfilms.com 03 Mar 01:25
   what algorithm is used in Ctrl-K? David Gowers 03 Mar 03:18
    what algorithm is used in Ctrl-K? saulgoode@flashingtwelve.brickfilms.com 03 Mar 11:05
zhang chi
2007-03-01 15:08:04 UTC (about 17 years ago)

what algorithm is used in Ctrl-K?

http://www.gimptalk.com/forum/topic/My-First-Tutorial-Blending-Images-In-Gimp-106-1.html

in this tut, after feather,C-i,and C-K is used, but what algorithm is used when using Ctrl-k ?

thank you

saulgoode@flashingtwelve.brickfilms.com
2007-03-03 01:25:53 UTC (about 17 years ago)

what algorithm is used in Ctrl-K?

Quoting zhang chi :

http://www.gimptalk.com/forum/topic/My-First-Tutorial-Blending-Images-In-Gimp-106-1.html

in this tut, after feather,C-i,and C-K is used, but what algorithm is used when using Ctrl-k ?

thank you

If the layer has an alpha channel then the value of the alpha is scaled by (1 - S) where "S" is the selection mask's value (which spans the range '0=not selected' to '1=fully selected' -- the selection is actually a value from 0 to 255).

If there is no alpha channel then the value of each of the components (RGB) is scaled by (1 - S) and added to the product of the corresponding component of the active background color and (1 - S).

For Indexed Mode images, the resulting pixel is the active BG color if S>0.5 and unchanged if S

David Gowers
2007-03-03 03:18:26 UTC (about 17 years ago)

what algorithm is used in Ctrl-K?

On 3/3/07, saulgoode@flashingtwelve.brickfilms.com < saulgoode@flashingtwelve.brickfilms.com> wrote:

Quoting zhang chi :

http://www.gimptalk.com/forum/topic/My-First-Tutorial-Blending-Images-In-Gimp-106-1.html

in this tut, after feather,C-i,and C-K is used, but what algorithm is

used

when using Ctrl-k ?

thank you

If the layer has an alpha channel then the value of the alpha is scaled by (1 - S) where "S" is the selection mask's value (which spans the range '0=not selected' to '1=fully selected' -- the selection is actually a value from 0 to 255).

If there is no alpha channel then the value of each of the components (RGB) is scaled by (1 - S) and added to the product of the corresponding component of the active background color and (1 - S).

For Indexed Mode images, the resulting pixel is the active BG color if S>0.5 and unchanged if S

For Indexed Mode Images, the resulting pixel is the active BG color if the layer has no alpha and S > 0.5, (emptiness) if S > 0.5 and the layer has an alpha channel, and unchanged if S < 0.5.

saulgoode@flashingtwelve.brickfilms.com
2007-03-03 11:05:58 UTC (about 17 years ago)

what algorithm is used in Ctrl-K?

Quoting David Gowers :

On 3/3/07, saulgoode@flashingtwelve.brickfilms.com < saulgoode@flashingtwelve.brickfilms.com> wrote:

Quoting zhang chi :

http://www.gimptalk.com/forum/topic/My-First-Tutorial-Blending-Images-In-Gimp-106-1.html

in this tut, after feather,C-i,and C-K is used, but what algorithm is

used

when using Ctrl-k ?

thank you

If the layer has an alpha channel then the value of the alpha is scaled by (1 - S) where "S" is the selection mask's value (which spans the range '0=not selected' to '1=fully selected' -- the selection is actually a value from 0 to 255).

If there is no alpha channel then the value of each of the components (RGB) is scaled by (1 - S) and added to the product of the corresponding component of the active background color and (1 - S).

For Indexed Mode images, the resulting pixel is the active BG color if S>0.5 and unchanged if S

For Indexed Mode Images, the resulting pixel is the active BG color if the layer has no alpha and S > 0.5, (emptiness) if S > 0.5 and the layer has an alpha channel, and unchanged if S < 0.5.

Oops, forgot that case.

Also, there is an error in my description:

If there is no alpha channel then the value of each of the components (RGB) is scaled by (1 - S) and added to the product of the corresponding component of the active background color and (1 - S).

The very last term in the sentence should be "S" -- not "(1 - S)".