How can I rebin a 3dim histogram?

Is there a way to rebin 3d histograms, as you can do with 1 or 2 dim histograms ?