I want to find the derivative of an image along a radial direction. For instance, in the image below I want to find the gradient at a point $P$ of the image, along the direction of the circumference of the circle.
Just like we do image intensity derivatives $\frac{dI}{dx}$ or $\frac{dI}{dy}$, all I want to do is to find $\frac{dI}{dr}$ where $r$ is a variable that stores the rotation angle of the image with a particular center.
From what I know we need to follow chain rule of partial differentiation. $$\frac{dI}{dr} = \frac{dI}{dx} \cdot \frac{dx}{dr}$$
We know $\frac{dI}{dx}$ but how to find $\frac{dx}{dr}$?