1. A method for processing image data comprising: segmenting the image data into a first mask representing structure, a second mask representing non-structure, and a third mask where structure and non-structure overlap, wherein each mask has the same dimensions as the image data and comprises pixels having values assigned based on the segmentation of the image data; processing pixels of the image data defined by the first mask using a first operation but not a second operation; processing pixels of the image data defined by the second mask using the second operation but not the first operation; and processing pixels of the image data defined by the third mask using both the first and second operations.