1. A method for layer reconstruction from dual-energy image pairs, the method comprising: receiving a pair of images including a first image captured at a relatively high-energy dose and a second image captured at a relatively low energy dose; determining gradients aligned between the pair of images as a first layer; determining a second layer by subtracting the first layer from a gradient of the first image; detecting a motion area of the second layer relative to the first layer; inpainting the motion area of the second layer with gradients of the first image; and reconstructing the second layer by removing the gradients of the first layer from the gradients of the first image inpainted in the motion area of the second layer, wherein the second layer is an image of soft tissue.