Is it possible to create a single kernel which can help us to perform an 2 step image processing?
For example, I want to first perform a median filter on my image to remove salt and pepper noise and then perform a sharpen operation on it.
For this purpose, I have to perform the following operation
(image * Median_Kernel) * sharpening kernel = final_image
I want to have a kernel which combines the effect of Median_kernel and sharpening it such that
image * combined_kernel = final_image
Is this mathematically possible? If so, could someone please explain to me how to do this mathematically?