MCPcopy Create free account
hub / github.com/ImageEngine/cortex / readChannel

Method readChannel

src/IECoreImage/ImageReader.cpp:632–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632DataPtr ImageReader::readChannel( const std::string &name, bool raw )
633{
634 DataPtr data = m_implementation->readChannel( name, raw );
635 if( !raw )
636 {
637 ImagePrimitivePtr image = new ImagePrimitive( dataWindow(), displayWindow() );
638 image->channels[name] = data;
639 ColorAlgo::transformImage( image.get(), m_implementation->currentColorSpace(), m_implementation->linearColorSpace() );
640 }
641
642 return data;
643}
644
645void ImageReader::channelsToRead( vector<string> &names )
646{

Callers 1

doOperationMethod · 0.45

Calls 2

transformImageFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected