matlab 使用VIF存在的问题「建议收藏」MinGW-w64-for32and64bitWindows-Browse/ToolchainstargettingWin64/PersonalBuilds/mingw-builds/8.1.0/threads-posix/sehatSourceForge.netAcompleteruntimeenvironmentforgcchttps://sourceforge.net/projects/mingw-w64/files/Toolchains%20targe…
大家好,又见面了,我是你们的朋友全栈君。
MinGW-w64 – for 32 and 64 bit Windows – Browse /Toolchains targetting Win64/Personal Builds/mingw-builds/8.1.0/threads-posix/seh at SourceForge.net A complete runtime environment for gcc https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/?tdsourcetag=s_pctim_aiomsg
>> setenv('MW_MINGW64_LOC','D:\mingw64')
>> mex -setup -v
找到已安装的编译器 ‘MinGW64 Compiler (C)’。 MEX 配置为使用 ‘MinGW64 Compiler (C)’ 以进行 C 语言编译。 警告: MATLAB C 和 Fortran API 已更改,现可支持 包含 2^32-1 个以上元素的 MATLAB 变量。您需要 更新代码以利用新的 API。 您可以在以下网址找到更多的相关信息: https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html。
要选择不同的语言,请从以下选项中选择一种命令: mex -setup C++ mex -setup FORTRAN
matlab | 计算常用有参考图像质量评价指标 PSNR / SSIM / MSSSIM / IFC / VIF – 代码先锋网 matlab | 计算常用有参考图像质量评价指标 PSNR / SSIM / MSSSIM / IFC / VIF,代码先锋网,一个为软件开发程序员提供代码片段和技术文章聚合的网站。 https://www.codeleading.com/article/64273081392/
转至 MEX文件夹,运行compilePyrTools.m 将编译生成的文件粘贴至MEX父目录(即工具包目录)中(覆盖其中已存在的文件)
再次调用vifvec或ifcvec,(由于印象中代码有个type-error)根据报错内容,修改相关函数。(有一行代码调用了一个.m文件,但由于有一个字母大小写拼错了,matlab找不到该文件。直接改那行代码即可。)
>> mex upConv.c
使用 ‘MinGW64 Compiler (C)’ 编译。 警告: 您使用的是不受支持的 MinGW 编译器版本。要安装支持的 MinGW 编译器版本,请参阅: 安装 MinGW-w64 编译器。 有关当前支持的编译器的列表,请访问 https://www.mathworks.com/support/compilers。
MinGW-w64 – for 32 and 64 bit Windows – Browse /Toolchains targetting Win64/Personal Builds/mingw-builds/8.1.0/threads-posix/seh at SourceForge.net A complete runtime environment for gcc https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/?tdsourcetag=s_pctim_aiomsg
MinGW-w64 – for 32 and 64 bit Windows – Browse /Toolchains targetting Win64/Personal Builds/mingw-builds/8.1.0/threads-posix/seh at SourceForge.net A complete runtime environment for gcc https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/?tdsourcetag=s_pctim_aiomsg
安装到了最老的5.4版本还是会显示“不受支持的MinGW编译器版本”,但其实并不影响使用
GitHub – utlive/VIF https://github.com/utlive/VIF
Prerequisites: The Steerable Pyramid toolbox. Available at
http://www.cns.nyu.edu/~lcv/software.html
Input : (1) img1: The reference image as a matrix
(2) img2: The distorted image (order is important)
Output: (1) VIF the visual information fidelity measure between the two images
Default Usage:
Given 2 test images img1 and img2, whose dynamic range is 0-255
vif = vifvec(img1, img2);
想用VIF函数总是会报错,把彩色图像改成灰色图像就好了
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/140921.html 原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...