Pattern matching (template matching) for the analysis of 2D maps

This page includes the code used in the paper Juvela (2016) for pattern matching analysis of 2D images of interstellar clouds. The code is written in Python, using the pyOpenCL interface to the OpenCL libraries. If these have been installed, simple tests can be run python2 and python2 These scripts include comments regarding the parameters of the routines and they both produce FITS images of significance and position angles. When investigating the results, one should start by masking all pixels with low significance values. For more details, see the paper and the comments in the scripts.

Here is one example of matching the 'FIL' template to a Herschel surface brightness image. The figure shows the input data and the animation in scale_animation.avi the resulting image of significance and the distribution of recovered position angles as a function of the scale.

The code:
    • Added the possibility to use non-square templates.
    • added option AAVE to the routine PatternMatch).
    • First version (2016-04-15).


  • Juvela (2016): Pattern matching methods for the analysis of interstellar cloud structure (in press)