Forum Wiki Galerie Kontakt Wie man Fragen richtig stellt. Tutorial Forum
Zurück   GIMP-Forum 3.0 > RSS-Feeds > GIMP

Hinweise
Alt 24.01.2010, 14:30   #1
Wilber
RSS-Feed-Bot
 
Registriert seit: 27.05.2008
Beiträge: 1.381
Standard [GIMP Registry] - Script for eliminating the holes of a selection



In order to understand how this script works, we must focus on the selection mask, that is the channel related to the selection (you can view it either by activating Quick Mask or by saving the selection as a channel). Referring to this mask, the script eliminates every area that is composed from non-white pixels and is completely enclosed by a fence of white pixels; since the elimination consists in filling such areas of the mask with white, the corresponding holes of the selection will disappear.
Therefore, a black and gray region contiguous to the image's borders across at least one pixel is not supposed to be a hole, because not all of its edges are adjacent to white pixels.

With the purpose of being more powerful, the script also provides two options for adjusting the selection before the real removal operates.


_

When the option called 'Normalize selection at first' is on, the contrast of the selection mask is stretched so that the lightest pixels become white and the darkest pixels become black; this way, it's often possible to remove some holes even from selections whose masks are devoid of white pixels, which are essential for circumscribing every eliminable hole. The example hereunder shows how this initial improvement helps at least to eliminate certain holes (the ones of the letters G and M) which you couldn't remove without it instead.


_

By activating the option called 'Apply threshold to selection at first', the selection mask will be transformed into a black and white channel without antialiasing; the extent of white areas can be regulated with the slider called 'White threshold'. This feature is useful to boost the action of removal, especially when the selection has got soft borders and blurred zones, as shown in the illustration below.


_

Once installed, you can launch this script from the image menubar through
'Select -> Remove Holes...'.



Weiterlesen...
Wilber ist offline   Mit Zitat antworten
 

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.

Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[guiguru] GIMP*redux, single-window mode Wilber GIMP 0 21.09.2009 12:00
[guiguru] teaching interaction /09 Wilber GIMP 0 21.09.2009 12:00
Meine erste Explosion Pteradon Mein erstes Bild 7 11.09.2009 14:09


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:29 Uhr.


Powered by vBulletin® Version 3.8.2 (Deutsch)
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.