by performing operations within image blocks or by using histograms