MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / DesaturateImg

Function DesaturateImg

jni/stasm/misc.cpp:687–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687void DesaturateImg( // for apps and debugging, unneeded for ASM
688 CImage& img) // io: convert to gray (but still an RGB image)
689{
690 for (int i = 0; i < img.rows; i++)
691 {
692 RGBV* const rowbuf = img.ptr<RGBV>(i);
693 for (int j = 0; j < img.cols; j++)
694 {
695 byte * const p = (byte *)(rowbuf + j);
696 p[0] = p[1] = p[2] = RgbToGray(rowbuf[j]);
697 }
698 }
699}
700
701void DarkenImg( // for apps and debugging, unneeded for ASM
702 CImage& img) // io: darken this image

Callers 2

DetectEyesAndMouthFunction · 0.85
TraceShapeFunction · 0.85

Calls 1

RgbToGrayFunction · 0.85

Tested by

no test coverage detected