Questions tagged [ssim]

The structural similarity (SSIM) index is a method for measuring the similarity between two images

https://en.wikipedia.org/wiki/Structural_similarity

82 questions
0
votes
2 answers

Using SSIM loss in TensorFlow returns NaN values

I'm training a network with MRI images and I wanted to use SSIM as loss function. Till now I was using MSE, and everything was working fine. But when I tried to use SSIM (tf.image.ssim), I get a bunch of these warining messages: …
shaurov2253
  • 183
  • 1
  • 12
0
votes
1 answer

How to eliminate the edges surrounding the differences in the SSIM image output of compare_ssim from skimage.measure

I am trying to write a code that calculates the area occupied by the tracks on a microscope image, as this: As the tracks aren't uniform (I mean, they don't have a unique grey level as they are darker in the edge and lighter in the centre), I can't…
Lidia
  • 1
  • 1
0
votes
1 answer

I have two matrices that I have converted to a grayscale image and I want to find the mean SSIM value between them (python)

For example I have: X = [[1,2,3],[4,5,6]] Y = [[1,4,7],[5,5,1]] a=np.array(X) grayA=(a-np.amin(a))/(np.amax(a)-np.amin(a)) b=np.array(Y) grayB=(b-np.amin(b))/(np.amax(b)-np.amin(b)) However, when I do compare_ssim(grayA, grayB) I get the…
Angie
  • 183
  • 3
  • 13
0
votes
0 answers

Comparing Identical Images in Python

I'm trying to make a program that will identify Minecraft blocks based on an image. I currently have an image being cut up in 16x16 images and being compared to the texture files which should be identical. I can't seem to find a good solution to…
0
votes
2 answers

difference detection in live camera feed

I am facing a challenge where i am given a picture and i need to find the difference between an object in that picture and an object in front of me that i will see through an IP camera using python. this is the originally handed photo this is what…
karimkohel
  • 96
  • 1
  • 8
0
votes
1 answer

Comparing two images with ms_ssim on python

I want to compare two images but ms_ssim wants 4D tensor https://pypi.org/project/pytorch-msssim/ I Tried from PIL import Image from tqdm import tqdm from pytorch_msssim import ssim, ms_ssim, SSIM, MS_SSIM import torchvision import numpy as…
Kaltresian
  • 961
  • 3
  • 14
  • 32
0
votes
2 answers

SSIM calculation for WebP

ImageMagick's 'compare' seems to provide irrelevant numbers when using SSIM as the comparison metric. I'm using ImageMagick 7.0.8-58 Q16. I tried it with various levels of WebP compression (including lossless) magick compare -metric SSIM…
vptest
  • 246
  • 1
  • 17
0
votes
0 answers

SSIM unable to get image difference

I'm working on a firing simulator project. I'm using IP camera to capture a screen with the bullet holes. The problem I'm facing is getting only new bullet holes. I tried SSIM method to achieve that: before = cv2.imread('before.png') after =…
WatchMyApps Lab
  • 113
  • 1
  • 7
0
votes
1 answer

Can I generate a real time SSIM/PSNR plot while playing a video in FFmpeg?

If I have both reference and test videos and I want to play the test video while also observing a plot of SSIM or PSNR, can this be done using FFmpeg's filter?
0
votes
1 answer

Matlab-how can I use SSIM function using sprintf function

Now I'm researching on Image processing about interpolation. So I invented my new interpolation algorithms about image. And I have to check SSIM value about my images that are interpolated by my interpolation algorithms. Now I'm using ICY tool (On…
박윤호
  • 19
  • 2
0
votes
1 answer

How to assign values to specified location in Tensorflow?

I would like to implement a SSIM loss function, since the boarders are aborted by the convolution, I would like to preserve the boarders and compute L1 loss for the pixels of boarder. The code are learned from here. SSIM / MS-SSIM for TensorFlow For…
yuan zhou
  • 171
  • 1
  • 3
  • 9
0
votes
0 answers

Why is there (apparently) no correlation between avisynth SSIM and ffmpeg SSIM?

I used to check and adjust the quality of my video encodings with an Avisynth script calculating the SSIM index. For some reason, since moving to Windows 10, the performance is much lower. Then I found out about the ffmpeg ssim filter, which runs…
JMor
  • 47
  • 1
  • 11
0
votes
1 answer

Handling infinite value of PSNR when calculating PSNR value of video

I am trying to calculate PSNR value of the video, which I generate by removing some frames from the original video. In addition, I assume that the video will show the previous frame if the frame is removed. In that sense, I want to measure the QoE…
0
votes
1 answer

Why is ffmpeg not showing SSIM results when I do -tune ssim?

I'm trying to benchmark for SSIM in FFmpeg. If I do this ffmpeg -i input.mp4 -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 -psnr -ssim 1 output.mp4 ... [libx264 @ 0x7fe85b007600] SSIM Mean Y:0.9898484 (19.935db) [libx264 @ 0x7fe85b007600] PSNR Mean…
0
votes
1 answer

Efficient way of using ssim() function in Matlab for comparing image structures (or any other alternative)

I'm given the task of reordering a number of randomly placed video frames into the right order. I've managed to do this by using each frame as a reference once, and find the the two closest frames in terms of structure for that reference…