#NEWLINE# def rescaleMax( self , value = 255 ) : #NEWLINE# #INDENT# ' \n        Rescale the histogram such that the maximum equals the value.\n        ' #NEWLINE# cv . NormalizeHist ( self . hist , 1 ) #NEWLINE# ( _ , max_value , _ , _ ) = cv . GetMinMaxHistValue ( self . hist ) #NEWLINE# if ( max_value == 0 ) : #NEWLINE# #INDENT# max_value = 1.0 #NEWLINE# #UNINDENT# cv . NormalizeHist ( self . hist , ( 255 / max_value ) )