What You Don’t Know about the Channel—Image Matting with the Glass

Are you still troubled by how to pick out pictures with glass? We all know that glass is transparent, but it also contains some highlights and shadows. How to select these highlights and shadows without distortion and make them contain transparency is a very complicated problem. But now, this problem is about to be solved in this article!

Look at the picture above. The one on the left is the original picture, and the one on the right is the picture with the background changed after processing. It can be seen that the change was very successful. Now, just follow me to learn it—use the channel selection method to pick out the picture with glass.

  • Pick out the Cup

1. Open the material picture. Observe the picture. The whole picture is darker, and the cup contains more color details. Our main task is to remove these color details and save its transparency. In order to remove the influence of the background, we first use the pen tool to pick out the cup.

If you look carefully at the cup, you can see that the handle and the bottom of the cup are partially blurred. So, we need to adjust the feathering value of the selected arear to partially feather the edges.

2. Use the shortcut key—”CTRL+J” to copy a layer. Select the pen tool in the left toolbar. Use the pen tool to select the cup, and set the feather radius to 2 pixels.

  • Select the Transparent Part

3. Use the shortcut key—”CTRL+J” to load the cup part into a new layer. Use the shortcut key—”CTRL+J” again to copy a layer. In the menu bar, execute [Image]-[Adjustment]-[Desaturate] to decolor the cup.

4. Click the small eye in front of layer 2, layer 1 and the background layer to close them. Select the layer 2 copy and click the channel above the layer panel. Observe the red channel, green channel and blue channel.

Select the green channel. Use the mouse to drag the green channel to the new button in the lower right corner and let go to copy a green channel. Hold down the Ctrl key and click the thumbnail of the green copy layer to load the white object into the selection.

5. Click the layer button to return to the layer panel. Click the third button at the bottom right to create a layer mask.

  • Select the Red Wine Part

6. Now, the main part of the cup has been selected. But you will find that putting this cup into any background will look very strange. Moreover, it is not difficult to find that the red wine in the glass has disappeared under this operation. This has damaged the details of the picture, so now we will add this detail.

Turn off the layer 2 copy. Open layer 2. Click the channel button above, and use the same method to copy a green channel again. Select the lasso tool in the toolbar on the left to select the bottom half of the glass containing wine.

7. Use the shortcut key—”SHIFT+CREL+I” to perform the inverse selection operation. Change the background color to white, and use the shortcut key—”Ctrl Delete” to fill the selected part with white. Use “CTRL+D” to cancel the selection.

8. Select the brush tool in the toolbar on the left. Adjust the brush size. Set the hardness value to 0, and the blending mode to overlay. Set the foreground color to white. Use the brush to apply once on the entire remaining cup, and then apply twice on the bottom of the cup.

9. Hold down the ctrl key and click the thumbnail in front of the green copy channel to load the white part into the selection. Click the layer button above to return to the layer panel. Use the shortcut key—”CTRL+SHIFT+I” to perform the inverse selection operation. Click on the third symbol at the bottom right to add a layer mask.

  • Add Some Color

10. Open the layer 2 copy, you can see that the entire cup has been selected. Create a new blank layer below the copy of Layer 2 and Layer 2, and fill it with blue. The color parameter is: # a4c8ff.

11. Create a new blank layer on the top layer of the layer panel and fill it with white. Right-click on the layer and select the Create Clipping Mask to color the wine glass. The color parameter is: # dbfffa.

12. After this step of operation, it can be found that the edge of the wine in the wine glass has not been processed properly, and it looks very stiff. Select the brush tool in the left toolbar and adjust the hardness to 0. Click on the mask thumbnail of layer 2 and use the brush to paint on the edge of the wine.

13. Now, add a little color to the wine. Create a new blank layer on top of layer 2, fill the parameter as # dbfffa color. Change the blending mode to overlay.

14. Modify the background image style. You can find that the wine glass has been successfully picked out. Its highlights and shadows are completely retained, and the transparency still exists.

That’s it for today’s explanation. In life, we can’t help encountering many similar examples. We need to pick out the glass picture. The commonly used pen tool and quick selection tool cannot meet our requirements. So, how can this problem be solved?

After studying today’s tutorial, we learned that the channel can also be selected, and the channel is generally a choice corresponding to a specific color. If the colors of your picture are clearly distinguished, then you can use the channel for color processing and regional selection. Just load the selection in the channel. Is it very simple?

In addition, the channel is also suitable for picking hair. Use the level in the channel to adjust the black and white contrast. Turn the hair part completely black, you can easily complete the process!

Tags : channelimage mattingpick outTransparent cup

Leave a Response