1. A method for generating an output image, comprising: receiving, by a processor, an image; applying, by the processor, a first filter to the image; applying, by the processor, a second filter to the image; calculating, by the processor, a difference between a first value of each pixel obtained by a convolution process performed on the image with the second filter that was applied and a second value of each pixel obtained by the convolution process performed on the image with the first filter that was applied; and transmitting, by the processor, the difference to a sharpening module and a segmentation module, wherein the sharpening module and the segmentation module process the image using the difference to generate the output image, wherein the sharpening module processes the image by applying a first weight to the difference and adding the difference back to the image.