Improve histogram measurement and display.
Now it is possible to show histogram of luminance in RGB frames
This commit is contained in:
13 files changed
+463
-600
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user