Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSSSIM height check #8

Open
Ser-Gen opened this issue Feb 14, 2018 · 0 comments
Open

MSSSIM height check #8

Ser-Gen opened this issue Feb 14, 2018 · 0 comments
Labels

Comments

@Ser-Gen
Copy link

Ser-Gen commented Feb 14, 2018

Can't compare images smaller than 160px.

bash -c "vqmt tmp.y4m 58.convert.y4m 144 144 1 3 tmp PSNR SSIM MSSSIM VIFP PSNRHVS PSNRHVSM"
OpenCV Error: Assertion failed (s >= 0) in setSize, file /home/svasilev/opencv/opencv-3.3.0/modules/core/src/matrix.cpp, line 310
terminate called after throwing an instance of 'cv::Exception'
  what():  /home/svasilev/opencv/opencv-3.3.0/modules/core/src/matrix.cpp:310: error: (-215) s >= 0 in function setSize

files.zip

Got this files with following commands

convert 110086_x.png -resize 144x144 tmp.png
convert tmp.png -quality 58 -sampling-factor 1x1 58.convert.jpg
convert 58.convert.jpg 58.convert.png
ffmpeg -y -loglevel panic -i tmp.png -pix_fmt yuv444p tmp.y4m
ffmpeg -y -loglevel panic -i 58.convert.png -pix_fmt yuv444p 58.convert.y4m

160 and bigger goes well.

@rolinh rolinh added the bug label Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants