In this tutorial we will see a method to select or cut out hair.
To be able to apply this technique successfully,
we need to have an image with a proper contrast between the hair and the background.
Otherwise it will not work.
The higher the contrast, the better the result.
We will work on the image with the boy,
but the other example images are made with the same technique.
Go to file, open and here we search for our image and open it.
Then we right click on the layer and hit add alpha channel.
The font changes from bold to normal, which indicates that this layer now can have transparency.
Drag the layer to the duplicate layer button to make a duplicate of this layer.
In the next step we go to the menu bar and click on colors.
Here we hit curves.
Adjust the contrast by click and drag the diagonal line,
to make the darker areas a bit darker and the lighter areas a bit lighter.
But take care not to loose to much details.
Its important to pay attention to where the edges of the hair touch the background,
because that is where we need to increase the contrast.
We will look at the other areas later.
Click the preview of and on to see the difference.
Then click okay.
Go ahead and hit colors again.
Then click on desaturate to change the image into a black and white image.
Choose the option which enhances the contrast
of the edge of the hair with the background the most.
For this image I have chosen the option lightness.
When we have a subject with dark hair and lighter background,
the option luminosity might be better.
Hit okay.
Back to colors again, hit curves and adjust the contrast a bit more.
Click okay.
The goal is to make the subject as white as possible and the background as black as possible.
Everything that is white will be transparent,
and everything that is black will cover the underlying image.
Click okay.
When our subject has dark hair and a relative light background,
we go to colors and click invert.
In this image however, the edge of the hair is light, so we can leave it as it is.
Go to the toolbox and activate the free select tool.
We are going to select the body precisely and where the hair begins,
we stay just within the white area like shown in the video.
Hold the Ctrl key down and roll the mouse wheel to zoom in or out.
Start clicking points along the edge.
We can also click and drag, to draw a selection line.
When we hold down the space bar, the free select tool changes into the move tool,
and we can, by moving the mouse without clicking move the image.
Let go of the mouse to have the free select tool again.
Pressing the backspace key lets us remove one or more previous made points.
When we select the hair, we must make sure that we do not include parts of the background,
that might shine through the hair.
We can reduce the opacity of the top layer, to see if we are still on the right track.
When we click the last point over the first point, our selection is closed.
Make the opacity 100 again.
Go to view, zoom and fit image in window.
Go ahead and click and drag the white of the foreground background colors into the selection.
Go to select again and now click none.
Back to colors and curves and try to make the contrast even higher.
Click okay.
Go to the toolbox and make the paintbrush active.
Choose brush hardness 100 and make the size around 150.
Now we can work on the background to make everything that is not yet black, black.
This will of course be different for every image.
With the bracket keys we can change the size of the brush.
Use the Ctrl key and the mouse wheel to zoom in or out and the space bar to move the image.
When we have made the whole background black, we go to the foreground background colors,
and switch them, so white is our foreground color.
Go ahead and check if there are areas in the white of the subject,
that we still have to make white.
When this is done, we go to view, zoom and fit image in window,
to maximize the image in the window.
Right click on the bottom layer and click add layer mask.
Leave the layer mask on white full opacity and click add.
When we click on the image of the layer, we can see a white line around it,
which indicates that the image is active.
When we click on the layer mask we can see that the white line around the image disappears.
Although its is not good visible because the mask itself is white, the mask is now selected.
Select the top layer.
Go to edit and click cut, now back to edit and click paste.
We now have a floating layer.
Click on the anchor at the bottom of the layers panel,
to paste the floating layer into the layer mask.
Everything that is black in our mask, covers the background,
so only the subject and the hair are visible now.
The next step is to open our background image.
Go to file, open as layers and search and open the background image.
Click the scale tool in the toolbox, click in the image.
Now, click and drag the background image to scale it.
Make sure that it covers the underlying image completely.
Then click scale.
Click and drag this layer beneath the image of our subject.
Right click on the top layer and hit apply layer mask.
Make the background layer invisible by clicking on the eye.
In that way we can see which areas we still have to remove.
Go to the toolbox and activate the fuzzy select tool.
We can click and select one of the little areas that still needs to be removed.
Press the delete key to remove this area.
Then go to the next spot, select it and delete it.
In this way we can check our whole image to remove,
step by step, whatever needs to be deleted.
It can help to toggle the background layer on and off.
When we think its okay, we click on the smudge tool in the toolbox.
Choose brush bristles 01 and adjust the size to say 50 or so.
Go to select and hit all.
Now we can make the transition between the hair and the background,
a bit smoother where this is necessary.
Satisfied?
Make the background layer visible.
Then we go to view, zoom and hit fit image in window.
And there it is, our final result.
I hope this helps.
If that is the case, please give it thumbs up,
post a nice comment and subscribe if you have not done already.
Thanks very much for watching.
Không có nhận xét nào:
Đăng nhận xét