PyTextureAnalysis is a Python package for analyzing the texture of images. It includes functions for calculating local orientation, degree of coherence, and structure tensor of an image. This package is built using NumPy, SciPy and OpenCV.
The edit calculates the circular variance for each pixel in a 2D array of angles. The variance is computed using a 3x3 window around each pixel. The resulting 2D array of circular variance values is then visualized using a heatmap.
The edit calculates the circular variance for each pixel in a 2D array of angles. The variance is computed using a 3x3 window around each pixel. The resulting 2D array of circular variance values is then visualized using a heatmap.