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

Function transformImage

src/IECoreImage/ColorAlgo.cpp:141–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void transformImage( ImagePrimitive *image, const std::string &inputSpace, const std::string &outputSpace )
142{
143 if( outputSpace == inputSpace )
144 {
145 return;
146 }
147
148 ColorTransformer transformer( inputSpace, outputSpace, image->getDataWindow().size().x + 1, image->getDataWindow().size().y + 1 );
149
150 for( auto &channel : image->channels )
151 {
152 if( channel.first == "A" || channel.first == "Z" )
153 {
154 continue;
155 }
156
157 IECore::despatchTypedData<ColorTransformer, IECore::TypeTraits::IsNumericVectorTypedData>( channel.second.get(), transformer );
158 }
159}
160
161} // namespace ColorAlgo
162

Callers 3

doOperationMethod · 0.85
readChannelMethod · 0.85
doWriteMethod · 0.85

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected