Pixelator v2 is an advanced image comparison tool that integrates pixel-wise RGB analysis, perceptual relevance via the CIE-LAB colour space, and structural integrity detection using Sobel filters. It outperforms traditional methods like MSE, SSIM, and LPIPS by offering a robust and computationally efficient method to detect both subtle pixel-level changes and perceptually significant modifications.
- Combines RGB pixel-level analysis with perceptual analysis using the CIE-LAB colour space.
- Incorporates Sobel edge detection for enhanced structural comparison.
- Optimized for various applications, including image security and tamper detection.
Before running Pixelator v2, make sure the following dependencies are installed on your system:
- Python 3.x (Make sure you have Python 3.7+)
- NumPy - For numerical operations
- OpenCV - For image manipulation
- scikit-image - For advanced image processing techniques
- Matplotlib - For visualizing the output (optional, for plotting)
You can install the required dependencies by running:
pip install numpy opencv-python scikit-image matplotlib
Clone the repository to your local machine:
git clone https://github.com/somdipdey/Pixelator-View-v2.git
cd Pixelator-View-v2
To run the Pixelator v2 code, follow the steps below:
Navigate to the cloned repository directory. Run the Python script:
python pixelatorv2.py [Image 1] [Image 2]
To compare two images, simply call the pixelatorv2.py script with the paths to the images as arguments. Example:
python pixelatorv2.py /path/to/image1.jpg /path/to/image2.jpg
We modified the Green channel of RGB of the Lenna image incrementally by altering by just 1 pixel value, a subtle change that is imperceptible to the human eye. The following image shows the output of Pixelator v2 (d) using the reference Lena image (a) and the distorted Lena image (b) while also comparing output with SSIM map (c).
Pixelator v2 is freely available to the community. If you use our code in your research or work, please cite it as follows:
Dey, Somdip, Jabir Alshehabi Al-Ani, Aikaterini Bourazeri, Suman Saha, Rohit Purkait, Samuel Hill, and Julian Thompson. 2024.
"Pixelator v2: A Novel Perceptual Image Comparison Method with LAB Colour Space and Sobel Edge Detection for Enhanced Security Analysis"
Electronics 13, no. 22: 4541.
https://doi.org/10.3390/electronics13224541
Or in Bib Tex format as follow:
@article{ dey2024pixelator, author = {Somdip Dey and Jabir Alshehabi Al-Ani and Aikaterini Bourazeri and Suman Saha and Rohit Purkait and Samuel Hill and Julian Thompson}, title = {Pixelator v2: A Novel Perceptual Image Comparison Method with LAB Colour Space and Sobel Edge Detection for Enhanced Security Analysis}, journal = {Electronics}, volume = {13}, number = {22}, pages = {4541}, year = {2024}, doi = {10.3390/electronics13224541}, url = {https://doi.org/10.3390/electronics13224541} }
For more information, visit the official publication: Pixelator v2 Article in Electronics journal.