Nirkin Face Segmentation  0.9.0
Deep face segmentation based on fully connected convolutional neural network.
utilities.h File Reference

Face segmentation utility functions. More...

#include <opencv2/core.hpp>

Go to the source code of this file.


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...

Detailed Description

Face segmentation utility functions.

Function Documentation

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.

imgThe image that the segmentation will be blended with.
segThe segmentation as an 8-bit image.
alphaBlending weight [0, 1]. 0 means completely transparent and 1 means completely opaque.
colorThe color to blend with.