public static RandomAccessibleInterval openAtLowestLevel( final ImgLoader imgLoader, final ViewId view, final AffineTransform3D t ) { final RandomAccessibleInterval input; if ( MultiResolutionImgLoader.class.isInstance( imgLoader ) ) { final MultiResolutionImgLoader mrImgLoader = ( MultiResolutionImgLoader ) imgLoader; final double[][] mipmapResolutions = mrImgLoader.getSetupImgLoader( view.getViewSetupId() ).getMipmapResolutions(); final int bestLevel = findLowestResolutionLevel( mrImgLoader, view ); IOFunctions.println( "(" + new Date(System.currentTimeMillis()) + "): Loading level " + Util.printCoordinates( mipmapResolutions[ bestLevel ] ) ); input = mrImgLoader.getSetupImgLoader( view.getViewSetupId() ).getImage( view.getTimePointId(), bestLevel ); if ( t != null ) t.set( mrImgLoader.getSetupImgLoader( view.getViewSetupId() ).getMipmapTransforms()[ bestLevel ] ); } else { IOFunctions.println( "(" + new Date(System.currentTimeMillis()) + "): Loading full-resolution images :( " ); input = imgLoader.getSetupImgLoader( view.getViewSetupId() ).getImage( view.getTimePointId() ); if ( t != null ) t.identity(); } return input; }
return (RandomAccessibleInterval< T >) wrpSetupIL.getImage( timepointId, level, hints ); (RandomAccessibleInterval< T >) wrpSetupIL.getImage( timepointId, level, hints ), getOrCreateBrightImgDownsampled( new ViewId( timepointId, setupId ), dsFactors ), getOrCreateDarkImgDownsampled( new ViewId( timepointId, setupId ), dsFactors ) );
(RandomAccessibleInterval< T >) wrpSetupIL.getImage( timepointId, level, hints ), getOrCreateBrightImgDownsampled( new ViewId( timepointId, setupId ), dsFactors ), getOrCreateDarkImgDownsampled( new ViewId( timepointId, setupId ), dsFactors ), new FloatType() );
usedDownsampleFactors[ d ] = mipmapResolutions[ bestLevel ][ d ]; return mrImgLoader.getSetupImgLoader( viewId.getViewSetupId() ).getImage( viewId.getTimePointId(), bestLevel );