The structural similarity (SSIM) index is a method for measuring the similarity between two images
Questions tagged [ssim]
82 questions
1
vote
0 answers
Detecting difference between two images - two sensitive
I'm trying to detect differences between two frames (1min apart) of a CCTV camera to detect if a human entered the frame. Due to some technical limitations, I can't use YOLO or other human detection methods, and the default OpenCV HOG is just not…

boozi
- 468
- 1
- 3
- 16
1
vote
1 answer
Structural Similarity Index (SSIM) in Python (Multichannel error)
I want to calculate the Structural Similarity Index (SSIM) between a generated and a target image (that have been picked randomly from an array of images).
This is what I have tried-
from skimage.metrics import structural_similarity as…

Saransh Gautam
- 13
- 4
1
vote
1 answer
Interpretation SSIM skimage.metrics.structural_similarity()
I am working with medical images in python. I generate a binary threshold of this image (ImageA, 0, 1 encoded). From this image, I run a detection algorithm that generates another image B (also binary 0,1 encoded) and aims to detect the structures…

Phil
- 29
- 5
1
vote
1 answer
MS-SSIM in tensorflow
I want to use tf.image.ssim_multiscale for cacculate metric MS-SSIM and wrote this simple code. But it has error:
#(x_train.y_train),(x_test,y_test)=tf.keras.datasets.cifar10.load_data()
(train_images, train_labels), (test_images, test_labels) =…

Moein
- 61
- 5
1
vote
0 answers
Trade off between losses?
I have been working on a super-resolution task. I have this question about determining loss function, So in the case of the task at hand I felt like going with SSIM as a loss function to train my model. I did get a good set of results. Recently I…

user14709645
- 11
- 1
1
vote
0 answers
Error in comparing images of diffrerent dimension using ssim
Below is the code for comparing two images I am using:
# import the necessary packages
import cv2
from skimage.measure import compare_ssim
# construct the argument parse and parse the arguments
# load the two input images
imageA =…

Atif Faraz
- 25
- 2
1
vote
1 answer
I want to get the SSIM when comparing two images in python
I'm trying to use the "compare_ssim" function. I currently have two 2xN matrices of x,y coordinates where the first row is all the x coordinates and the second row is all the y coordinates of each of the two images. How can I calculate the SSIM for…

Angie
- 183
- 3
- 13
1
vote
0 answers
The SSIM values calculated using FFMPEG are not what I expected
I'm trying to encode an m2ts (MPEG-2 Transport Stream) file to mp4 (H.264) and get the ssim value.
I did get some SSIM values, but the results were contrary to my expectations.
Are there wrong command options for ffmpeg?
Encoding and SSIM…

fd-alexer
- 11
- 1
1
vote
0 answers
Image recognition: How to eliminate background before executing SSIM
While comparing various images with SSIM + Python, I found that some very similar images had a very low SSIM ratio. This is consequence of the interaction of the images background with the resize that has to be done to execute the calculations. This…

The Dan
- 1,408
- 6
- 16
- 41
1
vote
1 answer
Using SSIM , trying compare images and trying to get Brightness , Contrast and Structure separately
I am using the SSIM in python and trying to compare the image .
When we use inbuilt skimage.metrics import structural_similarity we will get the SSIM Score.
But I wanted the Brightness, Contrast and Structure score separately so as to deep-dive…

Sreevathsabr
- 649
- 7
- 23
1
vote
1 answer
What mechanism can be used to quantify similarity between non-numeric lists?
I have a database of recipes which is essentially structured as a list of ingredients and their associated quantities. If you are given a recipe how would you identify similar recipes allowing for variations and omissions? For example using milk…

Peter Pudaite
- 406
- 8
- 18
1
vote
0 answers
What is the accurate way of calculating SSIM score (with ffmpeg) between a video stream and the reference video?
As ffmpeg calculates ssim score by a frame-by-frame comparision,
how do I exactly align the reference video (say ref.mp4) with the video stream, so that only the corresponding frames (ith frame of both the videos, for all i) are compared by ffmpeg…

sumanth232
- 587
- 7
- 20
1
vote
1 answer
About objective metrics: Is the SSIM can be predicted by PSNR ? (PSNR vs SSIM)
I read some people saying that if you have a study that involve conclusion regarding PSNR you must repeat all again considering also SSIM.
Since this meaning double work, time (and why not money), doing all simulations again (that already got using…

roberutsu
- 353
- 2
- 5
- 15
0
votes
0 answers
Trying to divide the image into two halves and compare them
I have received a homework assignment which involves an image as shown below, and my task is to divide this image into two halves and find the differences between them. I have successfully split the image using the code below, and both resulting…

Peter Basaw
- 13
- 4
0
votes
0 answers
What causes noise in SSIM for detecting and showing image difference?
I'm trying to write a script to detect the difference between two architectural floor plan images (but it has to be a big enough difference). So far, I've used non-ML methods and SSIM works the best but the results are not optimal for some reason. I…

bachtick
- 49
- 6