image - 为什么 Scilab 不打开图像文件?
问题描述
我正在尝试在 Scilab 下使用图像文件,但我一开始就卡住了,无法加载图像文件。
我已经搜索了帮助系统以及网络,尝试了两个版本的 Scilab(因为我发现的一些答案说 6.0 与某些图像功能不兼容),仍然是一片空白。无论我尝试什么, imread 功能根本不存在。
这是我得到的:
在 Scilab 6.0.2 下:
--> clear
--> atomsSystemUpdate()
Scanning repository http://atoms.scilab.org/6.0 ... Done
--> atomsInstall("SIVP")
atomsInstallList: The package "SIVP" is not registered.
Please check on the ATOMS repository that it is available for Scilab 6.0 on Windows.
If it is, run atomsSystemUpdate() before trying atomsInstall(..) again.
at line 52 of function atomsError ( C:\Program Files\scilab-6.0.2\modules\atoms\macros\atoms_internals\atomsError.sci line 66 )
at line 78 of function atomsInstallList ( C:\Program Files\scilab-6.0.2\modules\atoms\macros\atoms_internals\atomsInstallList.sci line 117 )
at line 233 of function atomsInstall ( C:\Program Files\scilab-6.0.2\modules\atoms\macros\atomsInstall.sci line 249 )
--> atomsInstall("IPCV")
ans =
[]
--> disp( atomsGetInstalled() );
!IPCV 4.1.2 user SCIHOME\atoms\x64\IPCV\4.1.2 I !
--> im=imread("Kratka220.tif")
Undefined variable: imread
在 Scilab 5.5.2 下:
-->clear
-->atomsSystemUpdate()
Scanning repository http://atoms.scilab.org/5.5 ... Done
-->atomsInstall("SIVP")
ans =
[]
-->atomsInstall("IPCV")
atomsInstallList: Pakiet IPCV nie jest dostępny.
<this is Polish for "Package IPCV is not available"; I installed 5.5.2 in Polish>
!--error 10000
at line 51 of function atomsError called by :
at line 76 of function atomsInstallList called by :
at line 233 of function atomsInstall called by :
atomsInstall("IPCV")
-->disp( atomsGetInstalled() );
column 1 to 4
!SIVP 0.5.3.2 user SCIHOME\atoms\x64\SIVP\0.5.3.2 !
column 5
!I !
-->im=imread("Kratka220.tif")
!--error 4
Niezdefiniowana zmienna: imread
<this is Polish for "undefined variable">
我究竟做错了什么?
解决方案
在 atomInstall 之后,您必须重新启动 Scilab 才能加载工具箱。
推荐阅读
- java - 使用 Optaplanner 的 SolverManager 时是否需要配置 xml 或 drools drl 文件?
- c++ - 词法比较 std::filesystem::path 不区分大小写?
- java - .setChecked() 没有设置单选按钮的状态
- firebase - 基于角色的 FireStore 访问
- c# - 在 azure 持久函数中解析值时遇到意外字符
- woocommerce - 显示 4 个第一个产品属性
- python - Python3,Pandas:双向更新DataFrame,优先
- reactjs - 我无法从另一个组件更新状态
- cvi - 如何解决 CVI/Labwindows 中的非致命运行时错误
- c++ - 为什么程序忽略第一个 std::getline?