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

Method uvToPixelMatrix

src/IECoreImage/ImagePrimitive.cpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311M33f ImagePrimitive::uvToPixelMatrix() const
312{
313 M33f result;
314 const Box2i &displayWindow = getDisplayWindow();
315 V2i size = displayWindow.size() + V2i( 1 );
316 result.translate( V2f( displayWindow.min.x, displayWindow.min.y ) - V2f( 0.5f ) );
317 result.scale( V2f( size.x, size.y ) );
318 return result;
319}
320
321Imath::M33f ImagePrimitive::matrix( Space inputSpace, Space outputSpace ) const
322{

Callers 1

testSpacesMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by 1

testSpacesMethod · 0.76