MCPcopy Create free account
hub / github.com/AnetaTexler/FaceBlit / pixelOutOfImageRange

Function pixelOutOfImageRange

app/src/main/cpp/style_transfer.cpp:1097–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095
1096
1097bool pixelOutOfImageRange(cv::Point2i stylePixel, cv::Point2i targetPixel, const cv::Mat& image)
1098{
1099 return (stylePixel.x < 0 || targetPixel.x < 0 || stylePixel.y < 0 || targetPixel.y < 0 ||
1100 stylePixel.x > image.cols - 1 || targetPixel.x > image.cols - 1 || stylePixel.y > image.rows - 1 || targetPixel.y > image.rows - 1);
1101}
1102
1103
1104bool pixelIsNotCovered(cv::Point2i pixel, const cv::Mat1i& coveredPixels)

Callers 4

DFSSeedGrowFunction · 0.85
votingOnRGBFunction · 0.85
votingOnNNFFunction · 0.85
DFSSeedGrow_votingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected