Banding happens when editing curves in an image that has 8bits per channel. Before editing curves of the image (in photoshop) go to menu Image->Mode and select 16 bits, save the images always in TIFF format, jpeg and BMG only saves 8bits per channel.
Always scan 16bits per channel, if you image is 8bits then convert to 16bits before editing the curves. You only convert to 8 bits when preparing the image that is to be distributed in the internet.
See here how banding is generated: