The structural similarity (SSIM) index is a method for measuring the similarity between two images
Questions tagged [ssim]
82 questions
0
votes
0 answers
what are the good metrics that I can compare the performance of the result of several time-frequency transformations result quantitatively?
I generated a non-stationary signal and I want to apply several time-frequency transformation methods such as STFT, Continous Wavelet Transform(CWT), Wigner-Ville Distribution (WVD) to this signal and compare the performance of the results…
0
votes
0 answers
What is the correct way to calculate SSIM?
On Windows 10, I have installed ImageMagick, Version 7.1.1-Q16-HDRI.
I have a high resolution .png image that I convert to jpg with 75% quality:
magick myImage.png -quality 75 myImage.jpeg
Now I want to calculate SSIM to judge the quality of the…

jamacoe
- 519
- 4
- 16
0
votes
0 answers
Python image comparison improved percentage results
Running a python code to compare two images. It seems to compare most images well, that do not have white background but gets low results for equal images where white is not the same. Attaching the full code.
original
comparison
I get a similarty of…

Vaidas
- 55
- 6
0
votes
0 answers
Detect and mark differences between two similar objects in different positions on each image - python
I am trying to prepare program for comparison 2D drawings or just views on those drawings that can be positioned within the drawing in slightly different positions.
For now I have program that compares the drawings using SSIM and OpenCV but if i.e.…

garbul
- 1
- 1
0
votes
0 answers
trouble with python script to sort image based on image_difference and SSIM
I keep running into "IndexError: list index out of range" but I can't seem to squash it. It's a simple program, but chasing issues in VSCode kind of causes more issues than it solves and I'm too new to coding to parse what's happening.
I have a…

Bill E. Gene
- 1
- 1
0
votes
0 answers
Why the structural similarity index measure decreases with decreasing image resolution?
I computed the structural similarity index (SSIM) value between a ground truth mask and its corresponding predicted mask in an image segmentation task using a UNet model. Both the ground truth and predicted masks are of 1024 x 1024 resolution. I got…

shiva
- 1,177
- 2
- 14
- 31
0
votes
0 answers
How to compute ms_ssim with libvmaf in ffmpeg without computing vmaf score?
I would like to compute a ms_ssim score using ffmpeg. I would like to use libvmaf, but libvmaf always computes the vmaf score in parallel
With the base ffmpeg tool, we can compute the ssim score with a command like
ffmpeg -i distorded.mp4 -i…

lover14
- 11
- 3
0
votes
0 answers
Comparing 2D np arrays with ssim: ValueError: win_size exceeds image extent. If the input is a multichannel (color) image, set multichannel=True
I am trying to calculate SSIM for 2 numpy arrays using structural_similarity from skimage.metrics:
ydata.shape = (3, 230)
ydata3.shape = (3, 230)
When I try to calculate SSIM:
mse_value = mean_squared_error(ydata, ydata3)
ssim_value = ssim(ydata,…

Estefania Lopez
- 1
- 1
0
votes
0 answers
How right use SSIM loss pytorch?
I don't understand how I can use this loss in my model. I saw official topic but it don't help me. Maybe I need to describe formulas from there. I have SegNet model
SSIM from github

Daidin
- 1
0
votes
0 answers
ModuleNotFoundError: No module named 'sewar.full_ref'; 'sewar' is not a package
I installed Sewar using pip install sewar after that i got same error like below
from sewar.full_ref import mse, rmse, psnr, uqi, ssim, ergas, scc, rase, sam, msssim, vifp
import cv2
org = cv2.imread("org_path")
blur =…

Parthiban Marimuthu
- 665
- 1
- 8
- 15
0
votes
2 answers
How to superimpose two images and get SSIM (similarity index) value for these two images?
I have a clean image, and a noisy image. I created a denoiser and applied it to the noisy image, that was my final output. Now to compare how much this image is close to a clean image I need to compare it using PSNR and SSIM, but due to different…

Rohit gupta
- 211
- 3
- 18
0
votes
1 answer
ValueError: win_size exceeds image extent. If the input is a multichannel (color) image, set multichannel=True
I am trying to calculate SSIM value for two images but I am getting error.
img_np.shape = (1, 256, 256)
out.detach()[0].cpu().numpy().shape = (1, 256, 256)
out is the output image generated from the model
when i try to find SSIM value ssim_ =…
user15957418
0
votes
0 answers
ffmpeg ssim gives me bad result for both high quality and bad quality compression
I want to use ssim to evaluate the compression quality.
However, when I calculate the ssim values I get very similar (and low) results for very good lossless compression and for very bad.
What do I do wrong ?
For compression I do:
ffmpeg -r 6 -y -i…

idoo
- 310
- 1
- 12
0
votes
1 answer
ffmpeg: How to save SSIM and PSNR to a file?
I'm a ffmpeg newbie.
I would like my script (on Windows) to output the average PSNR and average SSIM values to a file.
(but not the values for every frame)
I can output them to the standard output but not to a file.
I use this line:
ffmpeg -i…

idoo
- 310
- 1
- 12
0
votes
1 answer
R packages for MS-SSIM?
I wanted to do some simple image comparisons with R (the reason I am not using python is that the workflow is in R). I tried to search for ms-ssim implementations in packages in R, but did find any except for spatialcompare::msssim. However, as I…

user48867
- 141
- 1
- 9