public static < T extends ImageGray < T > > T loadImage ( String fileName , Class < T > imageType ) { BufferedImage img = loadImage ( fileName ) ; if ( img == null ) return null ; return ConvertBufferedImage . convertFromSingle ( img , ( T ) null , imageType ) ; }
Loads the image and converts into the specified image type .