[otb-users] How to change default RAM limit?

2018-05-15 Thread Leonardo Hardtke
Dear all,
I am starting a new project and was investigating the likelihood of doing 
it in OTB. I used otb apps from python many times before but never tried to 
write my own apps. Part of my application will be based on the code 
/Examples/Segmentation/ConnectedThresholdImageFilter.cxx

It compiles and runs OK, but it is a little bit slow (8 secs) for what I 
need (interactive application with Landsat images [7591, 7731]). The info 
shows it uses only 128 Mb of RAM while I have at least 4 Gb of RAM free:

2018-05-16 14:33:10 (INFO): No kwl metadata found in file fire_test.tif
2018-05-16 14:33:10 (INFO): Default RAM limit for OTB is 128 MB
2018-05-16 14:33:10 (INFO): GDAL maximum cache size is 393 MB
2018-05-16 14:33:10 (INFO): OTB will use at most 8 threads
2018-05-16 14:33:10 (INFO): Estimated memory for full processing: 
3.94151e+06MB (avail.: 128 MB), optimal image partitioning: 30794 blocks
2018-05-16 14:33:10 (INFO): File fire_segment.tif will be written in 30924 
blocks of 1898x1 pixels

How do I configure the amount of RAM that the application uses?

Thanks in advance!

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [otb-users] Question about OrthoRectification

2018-05-15 Thread felicia monti
Yes, you must enter? & Skipcarto = true & geom =. However I have a question 
about the Gcps. Can I enter the ground control points only through the 
RefineSensorModel? Or is there another way to orthorectify using gcps? I have 
seen that the ground control points are inserted in the form x y lon lat, but 
the coordinates x y are image coordinates? Or cartographic coordinates?
Thank you

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [otb-users] Question about Haralick Texture Extraction

2018-05-15 Thread Michel Julien
Hi,


-The only channel that will be processed is the one selected in 
parameter

-You are right about orientations

-Regarding output image, it will contains several bands (one per 
haralick feature) but you do not have to do anything to select that, it is 
automatic.
If you think that the application documentation is not precise enough, you can 
file a documentation change request here :

https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues

Regards,

Julien

De : otb-users@googlegroups.com [mailto:otb-users@googlegroups.com] De la part 
de Aïnhoa HERBLOT
Envoyé : lundi 14 mai 2018 13:01
À : otb-users 
Objet : [otb-users] Question about Haralick Texture Extraction

Hello,


I wish to use the tool "Haralick Texture Extraction" of OTB. I would need 
information on some parameters :

  * Input Image : Is it possible to work on a multi spectral image? The 
operation is made on all the channels or only on that selected? Or, should the 
image be in gray level?

• *  For orientation (x / Y offset): does the parameter work 
this way?

o   0° --> X=1, Y=0

o   45° --> X=1, Y=1

o   90° --> X=0, Y=1 …

•*  Outpout Image : Should the output image be in gray level or 
color?



Thanks for your help,

Aïnhoa H
--
--
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 
otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 
otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [otb-users] Re: OGRLayerClassifier

2018-05-15 Thread Michel Julien
Hi,

Is the process running to the end despite of the error message ? Sometimes gdal 
reports errors but the process succeeds.

In any case, can you file a bug report with an extract of your shp file ?

https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues

Thanks a lot,

Julien

De : otb-users@googlegroups.com [mailto:otb-users@googlegroups.com] De la part 
de Alzira Ramos
Envoyé : mardi 15 mai 2018 15:30
À : otb-users 
Objet : [otb-users] Re: OGRLayerClassifier


Hi!
Did you known what was the problem?
Best reards,
Alzira

segunda-feira, 15 de Maio de 2017 às 16:22:36 UTC+2, Salah eddine AIT AHTMAN 
escreveu:
Hi,

I'm trying to get the classification (OGRLayerClassifier) of my vector layer 
outcome from the LSMS Segmentation by using an svm model generated with 
TrainVectorClassifier , but when i run the processing i get ERROR 1: Invalid 
index : -1

there is my shell command:
 "otbcli_OGRLayerClassifier -inshp LSMSSegmentation.shp -instats meanVar.xml 
-insvm svm_model.svm -feat meanB0 meanB1 meanB2 -cfield predicted "

Thanks for reply
Salah eddine.
--
--
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 
otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 
otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [otb-users] Re: Fail computing KMeans Classification on ASTER/Sentinel2/Landsat-Strip images

2018-05-15 Thread Michel Julien
Hi,

Can you file a bug report ?

https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues

Thanks a lot,

Regards,

Julien

De : otb-users@googlegroups.com [mailto:otb-users@googlegroups.com] De la part 
de Thibaut Voirand
Envoyé : mardi 15 mai 2018 16:35
À : otb-users 
Objet : [otb-users] Re: Fail computing KMeans Classification on 
ASTER/Sentinel2/Landsat-Strip images

Hello Lucas,

I'm having the same problem on a Landsat 8 image.
Did you find a solution?

Thanks
Thibaut

On Monday, February 12, 2018 at 1:58:46 PM UTC+1, DAVAZE Lucas wrote:
Hi,

I'm currently trying to process an unsupervised classification on ASTER, 
Sentinel2 and Stripped Landsat images that receive preliminary corrections 
(cloud filtering, topographic correction, band ratio etc...). However, the 
classification fails and I get the following message when using OTB from the 
commandline (I get the same from the GUI version).

Error when loading model 
S2A_OPER_MSI_L1C_TL_SGS__20160823T173537_A006111_T31TGL_RATIO2_TopCor_Res_30_clip_clean_KMEAN.tif_model.txt

It seems that this .txt is the problem but I don't understand why. The classif 
works on non-stripped landsat images that receive exactly the same processing 
chain that the ASTER, S2A and stripped Landsat.

Do you know how I can make it work ?

I attached the files for which the classif is not working.

Thanks in advance,

Lucas.

--
--
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 
otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 
otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[otb-users] Re: Fail computing KMeans Classification on ASTER/Sentinel2/Landsat-Strip images

2018-05-15 Thread Thibaut Voirand
Hello Lucas,

I'm having the same problem on a Landsat 8 image.
Did you find a solution?

Thanks
Thibaut

On Monday, February 12, 2018 at 1:58:46 PM UTC+1, DAVAZE Lucas wrote:
>
> Hi,
>
> I'm currently trying to process an unsupervised classification on ASTER, 
> Sentinel2 and Stripped Landsat images that receive preliminary corrections 
> (cloud filtering, topographic correction, band ratio etc...). However, the 
> classification fails and I get the following message when using OTB from 
> the commandline (I get the same from the GUI version).
>
> *Error when loading model 
> S2A_OPER_MSI_L1C_TL_SGS__20160823T173537_A006111_T31TGL_RATIO2_TopCor_Res_30_clip_clean_KMEAN.tif_model.txt*
>
> It seems that this .txt is the problem but I don't understand why. The 
> classif works on non-stripped landsat images that receive exactly the same 
> processing chain that the ASTER, S2A and stripped Landsat.
>
> Do you know how I can make it work ?
>
> I attached the files for which the classif is not working.
>
> Thanks in advance,
>
> Lucas.
>
>

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[otb-users] Re: OGRLayerClassifier

2018-05-15 Thread Alzira Ramos

Hi!
Did you known what was the problem?
Best reards,
Alzira

segunda-feira, 15 de Maio de 2017 às 16:22:36 UTC+2, Salah eddine AIT 
AHTMAN escreveu:
>
> Hi, 
>
> I'm trying to get the classification (OGRLayerClassifier) of my vector 
> layer outcome from the LSMS Segmentation by using an svm model generated 
> with TrainVectorClassifier , but when i run the processing i get ERROR 1: 
> Invalid index : -1
>
> there is my shell command:
>  "
>
> *otbcli_OGRLayerClassifier -inshp LSMSSegmentation.shp -instats 
> meanVar.xml -insvm svm_model.svm -feat meanB0 meanB1 meanB2 -cfield 
> predicted "*Thanks for reply
> Salah eddine.
>
>

-- 
-- 
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 otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
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 otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.