![]() ![]() Add an alpha channel to the duplicated layer (right-click in the Layers dialog and choose Add Alpha Channel).Duplicate the Background layer and name it something like hair-extracted.Remember, black color paints a mask and white erases it.Ĥ.3 ExTRACTING HAIR fROM THE BACKGROUND -A TRICKY TASK ![]() You may have to paint or erase the reddish mask to correct the hair jutting out. Touch up the incomplete hair strands in the example image. Select the Paintbrush tool with a thin, soft brush pointer (depending on the image and its resolution in this case, use 5 to 9 pixels). You are now ready to do some touchup work on the reddish mask. Before you proceed, make the mask layer invisible by clicking the layer's eye icon in the Layers dialog. ![]() You can also select it from within the Select menu. In the image window, click the bottom-left icon to activate the Toggle Quick Mask. Right-click on the mask layer in the Layers dialog to open the context menu of this layer. If not, delete the old selection and create a new one. If you have done everything right, the contour of the head with hair should be selected.Choose the Edit > Fill with FG Color menu item to fill the selection on the mask layer with black.Create a selection across the image areas surrounded by the hair contour.Choose Edit > Clear to delete the white image areas.So that you can work as accurately as possible, the selection should be sharp edged, i.e., no feathering. When the hair is defined by contrast, choose Select > By Color (or use the Select by Color tool) to create a selection on the white image areas on the mask layer.Be aware that a solitary hair is extremely difficult to capture, even with this wonderful tool. Use the Threshold function (Color > Threshold) to set the mask layer so that the hair strands are fully displayed- there should be an adequate amount of contrast between the hair and the background of the image.Make sure the layer has an alpha channel (transparency attributes) by right-clicking in the Layers dialog and choosing Add Alpha Channel from the context menu, thus adding transparency to the layer.Select the Image > Mode menu item and make sure the image is in RGB mode if it isn't, change the mode.ĭuplicate the Background layer (in the Layers dialog). ![]() Save it as extractinghair.xcf in the layer-enabled XCF format.Open the girl.png image in the SampleImages folder on the DVD.The prerequisite is that the selected image object should stand out to some extent from the rest of the image. Touched-up hair strands on the mask with the Background layer visible from underneath WORKI NG WI TH BLACK-AND-WH I TE AND COLOR I MAG ES The mask layer is being created it will serve to extract the hair. B I jgįile Edit Select View Image Layer Colors lools Filters Video You can employ painting tools to touch up this layer and subsequently use it to create selections that will help you to edit the actual image.įi "extractinghairjrf-27.0 [RGB. Though this solution is not perfect, it may serve as a brainteaser for developing your own solutions.įirst you'll want to choose Colors > Threshold so that you can create a mask layer with high contrast. The following example focuses on increasing existing contrast levels so you can achieve the most exact selection of fine structures possible. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |