为什么 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">

我做错了什么?

解决方法

atomsInstall 后,您必须重新启动 Scilab 才能加载工具箱。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...