public static Raster load ( Media media ) { Check . notNull ( media ) ; final Xml root = new Xml ( media ) ; final RasterData dataRed = RasterData . load ( root , CHANNEL_RED ) ; final RasterData dataGreen = RasterData . load ( root , CHANNEL_GREEN ) ; final RasterData dataBlue = RasterData . load ( root , CHANNEL_BLUE ) ; return new Raster ( dataRed , dataGreen , dataBlue ) ; }
Load raster from media .