Hi,
I am fairly new to the package and working through the invasive species example.
everything has gone smoothly up to the calibration data stage. I have tried to keep my code and directories as similar to those in the example as possible.
when running the prepareCalData function I get the following output and error:
> calData <- SegOptim::prepareCalData(
+ rstSegm = segmRst,
+ trainData = trainDataRst,
+ rstFeatures = classificationFeatures,
+ thresh = 0.5,
+ funs = "mean",
+ minImgSegm = 30,
+ verbose = TRUE)
-> [1/3] Loading train data into image segments...
Error in as_string(x) : Can't convert a call to a string.
Error in getTrainData_(x = x, rstSegm = rstSegm, useThresh = useThresh, :
An error occurred while calculating training data stats!
Warning message:
In SegOptim::prepareCalData(rstSegm = segmRst, trainData = trainDataRst, :
An error occurred while generating train data! Check segmentation parameter ranges? Perhaps input train data?
Any help or thoughts would be greatly appreciated.
Thanks!
Sebastian