This problem was solved including x vector in the code:x<-c(10,5,1,1)x# Segmentação de imagemsegmObj <- segmentation_SAGA_SRG(x, rstList= lsat,outputSegmRst= "G:/sr/C9/seg.sgrd",Bandwidth=10,GaussianWeightingBW=5,VarFeatSpace=1,VarPosSpace=1,seedType=0,method1=0,DWeighting=3,normalize=0,neighbour=0,method2=0,thresh=0,leafSize=1024,SAGApath='G:/Downloads/saga-7.3.0_x64/saga-7.3.0_x64/',verbose=TRUE)
Hi Marcelo,
Thanks for using SegOptim
You can write the object with the calibrated/trained classifier
(of class "SOptim.Classifier") by using any of R's base functions
such as saveRDS (which writes a single R object to a
file, and makes it possible to restore it) or by using the save
function which writes an external representation of R objects to
file. The objects can be read back from the file at a later date
by using the function load
saveRDS(clObj, "myTrainedClassifier.rds") # save the SOptim.Classifier object
clObj <- readRDS("./myTrainedClassifier.rds") # restore the
object back in a different session
Hope this helps
Cheers
João
- - -