https://github.com/somdipdey/pixelator-view-v2
Source code and test data of Pixelator v2
https://github.com/somdipdey/pixelator-view-v2
Last synced: 8 months ago
JSON representation
Source code and test data of Pixelator v2
- Host: GitHub
- URL: https://github.com/somdipdey/pixelator-view-v2
- Owner: somdipdey
- Created: 2024-09-23T00:27:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-19T11:37:46.000Z (11 months ago)
- Last Synced: 2024-12-23T13:16:13.664Z (10 months ago)
- Language: Python
- Size: 40.7 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pixelator v2 - Perceptual Image Comparison
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.
## Features
- 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.
## Requirements
Before running Pixelator v2, make sure the following dependencies are installed on your system:### Dependencies
- **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:
```bash
pip install numpy opencv-python scikit-image matplotlib
```## Installation
Clone the repository to your local machine:```bash
git clone https://github.com/somdipdey/Pixelator-View-v2.git
cd Pixelator-View-v2
```## Running Pixelator v2
To run the Pixelator v2 code, follow the steps below:
Navigate to the cloned repository directory.
Run the Python script:```bash
python pixelatorv2.py [Image 1] [Image 2]
```## Example Usage
To compare two images, simply call the pixelatorv2.py script with the paths to the images as arguments. Example:
```bash
python pixelatorv2.py /path/to/image1.jpg /path/to/image2.jpg
```## Output
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).

## Cite This Work
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](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](https://www.mdpi.com/2079-9292/13/22/4541).