return ( ArrayImgAWTScreenImage ) container;
}
if ( ShortType.class.isAssignableFrom( type.getClass() ) )
{
final ShortArray array = new ShortArray( numElements( dims ) );
final ArrayImgAWTScreenImage< ShortType, ShortArray > container = new ShortAWTScreenImage( new ShortType( array ), array, dims );
container.setLinkedType( new ShortType( container ) );
return ( ArrayImgAWTScreenImage ) container;
}
if ( UnsignedShortType.class.isAssignableFrom( type.getClass() ) )
{
final ShortArray array = new ShortArray( numElements( dims ) );
final ArrayImgAWTScreenImage< UnsignedShortType, ShortArray > container = new UnsignedShortAWTScreenImage( new UnsignedShortType( array ), array, dims );
container.setLinkedType( new UnsignedShortType( container ) );
return ( ArrayImgAWTScreenImage ) container;
}