#NEWLINE# def __init__( self , filename , process_func = None , dtype = None , as_grey = False ) : #NEWLINE# #INDENT# if ( dtype is not None ) : #NEWLINE# #INDENT# self . _dtype = dtype #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _dtype = np . uint8 #NEWLINE# #UNINDENT# self . filename = str ( filename ) #NEWLINE# self . _initialize ( ) #NEWLINE# self . _validate_process_func ( process_func ) #NEWLINE# self . _as_grey ( as_grey , dtype )