return ( ArrayImgAWTScreenImage ) container;
}
if ( IntType.class.isAssignableFrom( type.getClass() ) )
{
final IntArray array = new IntArray( numElements( dims ) );
final ArrayImgAWTScreenImage< IntType, IntArray > container = new IntAWTScreenImage( new IntType( array ), array, dims );
container.setLinkedType( new IntType( container ) );
return ( ArrayImgAWTScreenImage ) container;
}
if ( UnsignedIntType.class.isAssignableFrom( type.getClass() ) )
{
final IntArray array = new IntArray( numElements( dims ) );
final ArrayImgAWTScreenImage< UnsignedIntType, IntArray > container = new UnsignedIntAWTScreenImage( new UnsignedIntType( array ), array, dims );
container.setLinkedType( new UnsignedIntType( container ) );
return ( ArrayImgAWTScreenImage ) container;
}