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

How to get a Selection from a region of pixels ?

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.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

How to get a Selection from a region of pixels ? sanju maliakal 23 Feb 20:20
  How to get a Selection from a region of pixels ? Sven Neumann 24 Feb 00:01
sanju maliakal
2010-02-23 20:20:46 UTC (almost 15 years ago)

How to get a Selection from a region of pixels ?

I am writing a GIMP plugin in C . I want to represent a *contiguous* region of pixels with some similarity as a selection by passing either all pixels in that region or the boundary pixels of this region. i did a considerable amount of searching but couldn't really find a way through the GIMP API or any other means .
Through the GIMP's standard GUI there are options like 1. Fuzzy Select Tool and
2. Select by Color Tool
which give the Selection on the Image. But I want to know how to get such a *selection* based on some parameters(not color) through a GIMP plugin in C.

Sanju Maliakal

Sven Neumann
2010-02-24 00:01:49 UTC (almost 15 years ago)

How to get a Selection from a region of pixels ?

On Wed, 2010-02-24 at 00:50 +0530, sanju maliakal wrote:

I am writing a GIMP plugin in C . I want to represent a contiguous region of pixels with some similarity as a selection by passing either all pixels in that region or the boundary pixels of this region. i did a considerable amount of searching but couldn't really find a way through the GIMP API or any other means . Through the GIMP's standard GUI there are options like 1. Fuzzy Select Tool and
2. Select by Color Tool
which give the Selection on the Image. But I want to know how to get such a selection based on some parameters(not color) through a GIMP plugin in C.

The selection is a gray-scale mask. Your plug-in can access it and manipulate it just like any other drawable in the image.

Sven