diff --git a/Documentation/Cookbook/rst/recipes/improc.rst b/Documentation/Cookbook/rst/recipes/improc.rst index ca935be146903a9b505fdccf2f32396d238c134d..776fa35ad94722c494e0f508d25ed2a48facf03d 100644 --- a/Documentation/Cookbook/rst/recipes/improc.rst +++ b/Documentation/Cookbook/rst/recipes/improc.rst @@ -145,9 +145,9 @@ the *MeanShiftSmoothing* application: :: - otbcli_MeanShiftSmoothing -in input_image + otbcli_MeanShiftSmoothing -in input_image.tif -fout filtered_range.tif - -foutpos filtered_spat.tif + -foutpos filtered_spatial.tif -ranger 30 -spatialr 5 -maxiter 10 @@ -173,7 +173,7 @@ so, the *LSMSSegmentation* will process them by tiles whose dimensions are defined by the *tilesizex* and *tilesizey* parameters, and by writing intermediate images to disk, thus keeping the memory consumption very low throughout the process. The segmentation will group together -adjacent pixels whose range distance is below the *ranger* parameter and +neighboring pixels whose range distance is below the *ranger* parameter and (optionally) spatial distance is below the *spatialr* parameter. :: @@ -250,7 +250,7 @@ projection, so does the output GIS file). :: - otbcli_LSMSVectorization -in input_image + otbcli_LSMSVectorization -in input_image.tif -inseg segmentation_merged.tif -out segmentation_merged.shp -tilesizex 256 diff --git a/Modules/Applications/AppSegmentation/app/otbLSMSVectorization.cxx b/Modules/Applications/AppSegmentation/app/otbLSMSVectorization.cxx index a1e8e9b36f7ee71d6c37c973ce5f2c15752ed3f2..a7dae77d1d92c6413c1a573fee73a4df9adc18ff 100644 --- a/Modules/Applications/AppSegmentation/app/otbLSMSVectorization.cxx +++ b/Modules/Applications/AppSegmentation/app/otbLSMSVectorization.cxx @@ -100,7 +100,7 @@ private: AddRAMParameter(); // Doc example parameter settings - SetDocExampleParameterValue("in","avions.tif"); + SetDocExampleParameterValue("in","maur_rgb.png"); SetDocExampleParameterValue("inseg","merged.tif"); SetDocExampleParameterValue("out","vector.shp"); SetDocExampleParameterValue("tilesizex","256"); diff --git a/Modules/Applications/AppSegmentation/app/otbMeanShiftSmoothing.cxx b/Modules/Applications/AppSegmentation/app/otbMeanShiftSmoothing.cxx index b5ae63bdfb6d6372d23242a0286313a10d8e5578..6184904bfc67a914d198ee74be5013f51d485cd3 100644 --- a/Modules/Applications/AppSegmentation/app/otbMeanShiftSmoothing.cxx +++ b/Modules/Applications/AppSegmentation/app/otbMeanShiftSmoothing.cxx @@ -109,8 +109,8 @@ private: // Doc example parameter settings SetDocExampleParameterValue("in", "maur_rgb.png"); - SetDocExampleParameterValue("fout", "MeanShift_FilterOutput.tif"); - SetDocExampleParameterValue("foutpos", "MeanShift_SpatialOutput.tif"); + SetDocExampleParameterValue("fout", "smooth.tif"); + SetDocExampleParameterValue("foutpos", "position.tif"); SetDocExampleParameterValue("spatialr", "16"); SetDocExampleParameterValue("ranger", "16"); SetDocExampleParameterValue("thres", "0.1");