EXR reading: support Z channel if no Y channel

pull/20201/head
Nikolay Polyarniy 4 years ago
parent bb3bbd192b
commit 746bd47ce5
  1. 4
      modules/imgcodecs/src/grfmt_exr.cpp

@ -156,6 +156,10 @@ bool ExrDecoder::readHeader()
else
{
m_green = channels.findChannel( "Y" );
if( !m_green )
{
m_green = channels.findChannel( "Z" ); // Distance of the front of a sample from the viewer
}
if( m_green )
{
m_ischroma = true;

Loading…
Cancel
Save