问题描述
我在运行 SegOptim 包的教程脚本时遇到了一些错误,我正在尝试处理教程数据。尝试运行segmentation_OTB_LSMS函数时,
outSegmRst <- segmentation_OTB_LSMS(
# Input raster with features/bands to segment
inputRstPath = inputSegFeat.path,# Algorithm params
SpectralRange = 3.0,SpatialRange = 4,MinSize = 20,# Output
outputSegmRst = outSegmRst.path,verbose = TRUE,otbBinPath = otbPath,lsms_maxiter = 50)
我收到以下错误消息:
SpectralRange=3
SpatialRange=4
MinSize=20
Warning messages:
1: In system(cmd_1,ignore.stdout = TRUE,ignore.stderr = TRUE,show.output.on.console = TRUE) :
'C:/Program' not found
2: In system(cmd_2,show.output.on.console = TRUE) :
'C:/Program' not found
3: In system(cmd_3,show.output.on.console = TRUE) :
'C:/Program' not found
它应该产生 .tif 的输出。由于它只是一个警告信息,我不太在意。但是,当我使用假定的输出检查文件路径时,目录文件中不存在输出,但 Rstudio 环境检测到了 outSegmRst 数据。
[1]: https://i.stack.imgur.com/8zDUu.jpg
因此我无法使用光栅函数绘制输出。任何帮助表示赞赏。谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)