Nirkin Face Segmentation
0.9.0
Deep face segmentation based on fully connected convolutional neural network.
|
Face segmentation utility functions. More...
#include <opencv2/core.hpp>
Go to the source code of this file.
Functions | |
void | face_seg::renderSegmentationBlend (cv::Mat &img, const cv::Mat &seg, float alpha=0.5f, const cv::Scalar &color=cv::Scalar(0, 0, 255)) |
Render segmentation blended with image. More... | |
Face segmentation utility functions.
void face_seg::renderSegmentationBlend | ( | cv::Mat & | img, |
const cv::Mat & | seg, | ||
float | alpha = 0.5f , |
||
const cv::Scalar & | color = cv::Scalar(0, 0, 255) |
||
) |
Render segmentation blended with image.
img | The image that the segmentation will be blended with. |
seg | The segmentation as an 8-bit image. |
alpha | Blending weight [0, 1]. 0 means completely transparent and 1 means completely opaque. |
color | The color to blend with. |