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

Method ImageReader

src/IECoreImage/ImageReader.cpp:540–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538const Reader::ReaderDescription<ImageReader> ImageReader::g_readerDescription( OpenImageIOAlgo::extensions() );
539
540ImageReader::ImageReader() :
541 Reader( "Reads image files using OpenImageIO.", new ObjectParameter( "result", "The loaded object", new NullObject, ImagePrimitive::staticTypeId() ) ),
542 m_implementation( new ImageReader::Implementation( this ) )
543{
544 m_channelNamesParameter = new StringVectorParameter(
545 "channels",
546 "The names of all channels to load from the file. If the list is empty (the default value) "
547 "then all channels are loaded."
548 );
549
550 m_rawChannelsParameter = new BoolParameter(
551 "rawChannels",
552 "Specifies if the returned data channels should be what's stored in the file. That's not possible when "
553 "the image pixels are not byte aligned.",
554 false
555 );
556
557 m_miplevelParameter = new IntParameter(
558 "miplevel",
559 "Specifies the miplevel used for the pixel lookups and window sizes.",
560 0
561 );
562
563 parameters()->addParameter( m_channelNamesParameter );
564 parameters()->addParameter( m_rawChannelsParameter );
565 parameters()->addParameter( m_miplevelParameter );
566}
567
568ImageReader::ImageReader( const string &fileName ) : ImageReader()
569{

Callers 9

testChannelNamesMethod · 0.80
testReadHeaderMethod · 0.80
testReadImageMethod · 0.80
testIncompleteImageMethod · 0.80
testRoundTripTIFMethod · 0.80

Calls 1

addParameterMethod · 0.45

Tested by 9

testChannelNamesMethod · 0.64
testReadHeaderMethod · 0.64
testReadImageMethod · 0.64
testIncompleteImageMethod · 0.64
testRoundTripTIFMethod · 0.64