Improve histogram measurement and display.

Now it is possible to show histogram of luminance in RGB frames
This commit is contained in:
jfmcarreira committed 2018-02-06 01:10:16 +00:00
1 parent 2d6ba03d4a
commit 8ba512f4d0
13 files changed
+463 -600

No files matched your search

+3 -3
View File
@@ -97,11 +97,11 @@ PlaYUVerFrame* FrameMask::process( std::vector<PlaYUVerFrame*> apcFrameList )
{
for( UInt x = 0; x < m_pcFrameProcessed->getWidth(); x++ )
{
pixelImg = InputFrame->getPixelValue( x, y );
pixelMask = MaskFrame->getPixelValue( x, y );
pixelImg = InputFrame->getPixel( x, y );
pixelMask = MaskFrame->getPixel( x, y );
pixelOut = pixelImg * ( 10 - m_iWeight ) + pixelMask * m_iWeight;
pixelOut = pixelOut * 0.1;
m_pcFrameProcessed->setPixelValue( x, y, pixelOut );
m_pcFrameProcessed->setPixel( x, y, pixelOut );
}
}
return m_pcFrameProcessed;