As of my last update, there isn't a specific C++ library that is widely recognized for rotation matching of pixel images using the Mellin transform. The Mellin transform, while useful for scale and rotation invariant pattern recognition, tends to be less commonly implemented than other techniques like Fourier transforms or template matching methods.
If you need to use the Mellin transform for this purpose, you might have to implement the algorithm yourself. The basic steps involve normalizing the scale of an image by using the magnitude of the Fourier transform, converting to log-polar coordinates to change rotation and scale into vertical and horizontal translations respectively, and then applying an inverse Fourier transform.
However, you can check out the following libraries for general image processing and adapt the algorithms for Mellin transform:
-
OpenCV (Open Source Computer Vision Library): This is a highly popular and powerful library for computer vision tasks, which includes many basic and advanced image processing functions. Although it doesn't provide a direct Mellin transform implementation, you could use its tools to perform the necessary conversions and transformations on images.
Website: https://opencv.org/
-
FFTW (The Fastest Fourier Transform in the West): This library specializes in computing discrete Fourier transforms and can be used to help implement the Fourier component of the Mellin transform.
Website: http://www.fftw.org/
-
CImg (The C++ Template Image Processing Library): This is another general-purpose image processing library for C++ that provides a wide range of processing functions with a focus on simplicity and compatibility.
Website: http://cimg.eu/
You could combine these libraries to handle image processing tasks, Fourier-transform computations, and conversions to/from log-polar coordinates. To perform rotation matching using the Mellin transform, you might proceed with the following steps, assuming you have already written a Mellin transform implementation:
- Normalize the image using the magnitude of its Fourier transform.
- Convert the image to log-polar coordinates.
- Calculate the Mellin transform of the log-polar image.
- Compute the inverse Mellin transform.
- Perform a cross-correlation between the reference and transformed images to find matching rotations.
For anyone not comfortable crafting their own implementation, looking into existing computer vision or pattern recognition literature for code examples or even pseudocode of the Mellin transform can be helpful. Additionally, reaching out to research communities or forums might uncover more specialized code or libraries that could assist in this endeavor.