*Hi all,I'm trying to launch a SVM classification on a raster with 34 bands 
like this :*

------------------------------------------ COMMAND 
---------------------------------------------------
/usr/local/bin/otbcli_TrainImagesClassifier -io.il Raster_34bands.tif 
-io.vd Shp_Apprentissage.shp -io.imstat XML_Raster_34bands.xml -sample.mt 
1000 -sample.mv 1000 -sample.edg false -sample.vtr 0.5 -sample.vfn Class 
-classifier libsvm -classifier.libsvm.k linear -classifier.libsvm.c 1 
-classifier.libsvm.opt true -io.out SVMModel_Raster_34bands.model
----------------------------------------------------------------------------------------------------------------

*On my computer, I get this error :*

------------------------------------------ ERROR 
---------------------------------------------------
2014 Jun 03 11:57:16  :  Application.logger  (DEBUG) Entering DoExecute
2014 Jun 03 11:57:17  :  Application.logger  (INFO) Elevation management: 
setting default height above ellipsoid to  0 meters
2014 Jun 03 11:57:17  :  Application.logger  (FATAL) The following error 
occurred during application execution : 
/usr/include/ITK-4.5/itkImportImageContainer.hxx:192:
Failed to allocate memory for image.
Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion 
`map->l_init_called' failed!
----------------------------------------------------------------------------------------------------------------

*I think there is not enough memory on my computer, **so I launched the 
same command on *
*a server with a larger memory.I get a another error :*

------------------------------------------ ERROR 
---------------------------------------------------
2014 Jun 03 12:06:37  :  Application.logger  (DEBUG) Entering DoExecute
2014 Jun 03 12:06:37  :  Application.logger  (INFO) Elevation management: 
setting default height above ellipsoid to  0 meters
/usr/local/bin/otbcli : ligne 29 :  8548 Erreur de segmentation  
$OTB_CLI_LAUNCHER "$@"
----------------------------------------------------------------------------------------------------------------






*I don't understand why !!! I checked paths of the files and they are 
correct.I launched this command on a raster with a band and it works.The 
server responsable gave me the out GDB :*
----------------------------------------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault. 
GDALCopyWordsT<float, float> (nWordCount=<optimized out>, 
nDstPixelStride=<optimized out>, pDstData=<optimized out>, 
nSrcPixelStride=<optimized out>, pSrcData=<optimized out>) at 
rasterio.cpp:879 
879            CopyWord(tValue, *pOutPixel); 

#0  GDALCopyWordsT<float, float> (nWordCount=<optimized out>, 
nDstPixelStride=<optimized out>, pDstData=<optimized out>, 
nSrcPixelStride=<optimized out>, pSrcData=<optimized out>) at 
rasterio.cpp:879 
#1  GDALCopyWordsFromT<float> (nWordCount=12547, nDstPixelStride=136, 
eDstType=GDT_Float32, pDstData=<optimized out>, bInComplex=false, 
nSrcPixelStride=4, pSrcData=0x2667d80) at rasterio.cpp:1020 
#2  GDALCopyWords (nWordCount=12547, nDstPixelStride=136, 
eDstType=GDT_Float32, pDstData=<optimized out>, nSrcPixelStride=4, 
eSrcType=GDT_Float32, pSrcData=0x2667d80) at rasterio.cpp:1285 
#3  GDALCopyWords (pSrcData=<optimized out>, eSrcType=<optimized out>, 
nSrcPixelStride=<optimized out>, pDstData=<optimized out>, 
eDstType=<optimized out>, nDstPixelStride=<optimized out>, 
nWordCount=12547) at rasterio.cpp:1228 
#4  0x00007ffff34baeb5 in GDALRasterBand::IRasterIO (this=0x19151a0, 
eRWFlag=eRWFlag@entry=GF_Read, nXOff=nXOff@entry=0, nYOff=nYOff@entry=1259, 
nXSize=nXSize@entry=12547, nYSize=nYSize@entry=1, 
    pData=pData@entry=0x7ff52e9b6e98, nBufXSize=nBufXSize@entry=12547, 
nBufYSize=nBufYSize@entry=1, eBufType=eBufType@entry=GDT_Float32, 
nPixelSpace=nPixelSpace@entry=136, nLineSpace=nLineSpace@entry=1706392) 
    at rasterio.cpp:313 
#5  0x00007ffff34bb92a in GDALDataset::BlockBasedRasterIO (this=0x1914c80, 
eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=12547, nYSize=12334, 
pData=0x7ff5ae8e4010, nBufXSize=12547, nBufYSize=12334, 
eBufType=GDT_Float32, 
    nBandCount=34, panBandMap=0x18f0920, nPixelSpace=136, 
nLineSpace=1706392, nBandSpace=4) at rasterio.cpp:2474 
#6  0x00007ffff34859a6 in GDALDataset::RasterIO (this=0x1914c80, 
eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=12547, nYSize=12334, 
pData=0x7ff5ae8e4010, nBufXSize=12547, nBufYSize=12334, 
eBufType=GDT_Float32, nBandCount=34, 
    panBandMap=0x18f0920, nPixelSpace=136, nLineSpace=1706392, 
nBandSpace=4) at gdaldataset.cpp:1762 
#7  0x0000000000f650f6 in otb::GDALImageIO::Read(void*) () 
#8  0x0000000000bfc063 in otb::ImageFileReader<otb::VectorImage<float, 2u>, 
otb::DefaultConvertPixelTraits<float> >::GenerateData() () 
#9  0x000000000105e714 in 
itk::ProcessObject::UpdateOutputData(itk::DataObject*) () 
#10 0x0000000000a3ee4e in itk::ImageBase<2u>::UpdateOutputData() () 
#11 0x000000000105e6bf in 
itk::ProcessObject::UpdateOutputData(itk::DataObject*) () 
#12 0x00007fffb194ee8e in otb::Wrapper::TrainImagesClassifier::DoExecute() 
() from /usr/local/lib/otb/applications/otbapp_TrainImagesClassifier.so 
#13 0x0000000000c383d8 in otb::Wrapper::Application::Execute() () 
#14 0x0000000000c384ce in 
otb::Wrapper::Application::ExecuteAndWriteOutput() () 
#15 0x00000000009d484b in 
otb::Wrapper::CommandLineLauncher::ExecuteAndWriteOutput() () 
#16 0x00000000009d22b9 in main () 

#CopyWord (fValueIn=nan(0x400000), fValueOut=<optimized out>) at 
rasterio.cpp:738 
#738        fValueOut = fValueIn; 
----------------------------------------------------------------------------------------------------------------


*Is someone could help me please ?! **Thank you *
*in advance,Sylvio*

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to