Skip to content

MSSSIM height check #8

@Ser-Gen

Description

@Ser-Gen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions