1 | initial version |
Afaik, there doesn't exist a direct function for that but you can create circular masks with circle() (see http://docs.opencv.org/modules/core/doc/drawing_functions.html?highlight=circle#circle), mask your data with it and compute the gradients on your own.