Re: [otb-users] custom OTB app "Could not find application"

2016-02-12 Thread Nico Champ

Sorry for the French version ! here after, the english one !

So this is my problem...

I just compiled OTB 5.2

Unfortunately, I get the same error as Mélanie when I launch some otbcli , 
for instance otbcli_BandMathX
(ERROR: Could not find application "BandMathX" ERROR: Module search path: 
/usr/local/bin/../lib/otb/applications)


The weird point is that some otbcli work, for instance otbcli_ManageNoData 

After investigation, I realised that only a few otbcli applications were 
updated when installinf OTB 5.2

The others (for instance otbcli_BandMathX) were not updated !

I started having a look on the CMakeLists.txt to figure out the issue... 
But I'm getting stuck !

And the solutions given by Otmane or Manuel do not seem to work ..

Any idea ? ;-)

Thank you very much in advance !

Nicolas



Le vendredi 12 février 2016 14:53:50 UTC+1, Nico Champ a écrit :
>
>
> Bonjour,
>
> Je viens de compiler OTB 5.2 sous mac (mavericks)
>
> J'ai la même erreur que Mélanie (ERROR: Could not find application 
> "BandMathX" ERROR: Module search path: 
> /usr/local/bin/../lib/otb/applications)
> lorsque je lance certaines commandes otbcli (par exemple otbcli_BandMathX)
>
> Pour d'autres commandes, pas de souci, par exemple otbcli_ManageNoData se 
> lance normalement !
>
> En enquêtant, je me rends que seules certaines commandes otbcli ont été 
> mises à jours dans /usr/local/bin au moment de l'install de l'OTB 5.2. Ce 
> sont elles qui marchent !
> Les autres, créées au moment de la précédente install (OTB 4.4), ne l'ont 
> pas été et ne marchent plus !
>
> J'ai commencé à regarder les options du CMakeLists (le normal, pas le 
> SuperBuild qui ne marche pas chez moi), histoire de recompiler correctement 
> mais je sèche un peu...
>
> Quelqu'un aurait-il une idée ? (les pistes données dans ce fil de mail ne 
> semblent pas fonctionner)
>
> Merci !
>
> Nicolas
>
>
>
> Le jeudi 11 décembre 2014 14:57:53 UTC+1, Mélanie Durupt a écrit :
>>
>> Sorry : after a discussion with my colleague, it seems that he had to 
>> make some changes in otb code and that's why there is a pb with these app. 
>>
>> Mélanie
>>
>> Le mardi 9 décembre 2014 17:47:39 UTC+1, Grizonnet Manuel a écrit :
>>>
>>> Other idea, do you have the definition of the application type (using 
>>> ITK type macro) in the public section of the class definition.
>>>
>>> Something like this:
>>>
>>> itkTypeMacro(myImageClassifier, otb::Application);
>>>
>>> Manuel
>>>
>>>
>>> Le 09/12/2014 17:38, Mélanie Durupt a écrit :
>>>
>>> I tried this too.  
>>> For the name of the application, it is correct : I checked with 
>>> copy/search/paste (in the .cxx and CMakeLists) to be sure!
>>>
>>> Mélanie
>>>
>>> Le mardi 9 décembre 2014 17:30:01 UTC+1, Otmane Lahlou a écrit : 

 Hi, 

 You can also try to export the environment variable ITK_AUTOLOAD_PATH 
 to indicate the directory where your shared library is located.

 export ITK_AUTOLOAD_PATH=*path_to_lib_directory*

 HTH

 Otmane



 Le mardi 9 décembre 2014 17:18:57 UTC+1, Guillaume Pasero a écrit : 
>
> Hi,
>
> Maybe you should check if "myImageClassifier" is the real name. The 
> name you are using to call an application should match the name defined 
> in 
> the application code :
> -> check in the code of this application, in the method DoInit().
> -> check that you have this line : SetName("myImageClassifier")
>
> It means that the "official" name of an application is not related to 
> the name of the ".so" library file. When loading a shared library, the 
> launcher will look for the official name that is set in SetName().
>
> Regards,
> Guillaume
>
> Le 09/12/2014 16:52, Mélanie Durupt a écrit :
>
> Hi everyone 
>
> I have a problem with an app (myImageClassifier) a colleague coded. He 
> is not available for the moment so I ask here. 
> When I launch the app I have this message :
>
> ERROR: Could not find application "myImageClassifier"
> ERROR: Module search path: /usr/bin/../lib/otb/applications:
> ERROR: Available modules :
> BandMath
> ... 
> VertexComponentAnalysis
> myComputeChangeMap
> myComputeConfusionMatrix
> myDBDecisionFusion
> myFeatureSelection
> myObjectDecisionFusion
> mySegmentTool
> ERROR: No loaded application...
>
> I tried 
> $ otbcli_myImageClassifier
> $ otbApplicationLauncherCommandLine myImageClassifier 
> /usr/lib/otb/applications/
> and I have the same messages... 
>
> I work with OTB 4.2 on ubuntu. Of course, "otbapp_myImageClassifier.so 
> " is in /usr/lib/otb/applications/
> I checked the application like in this example : 
> https://groups.google.com/d/msg/otb-users/gu7q0scLcgw/KLi-vnsdP78J
>
> You can see that in the list of the available modules, there are some 
> personal apps (that 

Re: [otb-users] RapidEye Optical Calibration in Monteverdi 3.0.1

2016-02-12 Thread Petar Dimitrov


Hello Stéphane,

thank you for the suggestion. I managed to open the editing panel of the 
OpticalCalibration OTB-application. 
However I expected that there will be a option in the editing panel to specify 
the type of satellite sensor
or to load the coefficients files for the sensor that I downloaded from the 
CESBIO site. From CESBIO site I
understand that SMAC requires coefficients specific for each sensor so if SMAC 
is implemented in the
OpticalCalibration OTB-application it should be such option in the editing 
panel. Obviously I am missing
something. Maybe these coefficients files are intended for use with the Python 
version of the SMAC
atmospheric correction algorithm. Is there any step-by-step tutorial how to do 
atmospheric correction
of satellite imagery in Monteverdi?   

Regards
Petar

On Wednesday, 10 February 2016 11:14:30 UTC+2, Stéphane A. wrote:
>
> Hello Petar,
>
> You can click on the *File/Load OTB-applications* item of the Monteverdi 
> menu to load OTB-appilications. A dockable browser will open.
>
> You can search for a specific OTB-applications by typing some text in its 
> search line.
>
> You can double click on the requested OTB-application to open its editing 
> panel.
>
> Best regards,
>
> http://orfeo-toolbox.org
>
> Stéphane ALBERT
> Ingénieur d'études et développement
> Business Unit E-SPACE & Geo Information, Département APPLICATIONS
>
> CS Systèmes d'Information
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - France
>
>
> On Tue, Feb 9, 2016 at 8:05 PM, Petar Dimitrov  > wrote:
>
>>
>> Hello,
>>
>> I would like to use Orfeo ToolBox 5.2.1 and Monteverdi 3.0.1 to do 
>> atmospheric correction of RapidEye image. From this site: 
>> 
>>  
>> http://www.cesbio.ups-tlse.fr/multitemp/?p=2956 
>>
>> Can I use Monteverdi to do this? 
>>
>> I understand that the SMAC method is implemented in OTB. 
>>
>> I downloaded coefficients files for RapidEye sensof from this site: 
>> http://www.cesbio.ups-tlse.fr/fr/smac_telech.htm  
>>
>> They are .dat files – one for each band. These files are needed for SMAC 
>> but I do not know how to use them. Maybe I have to load the files in the 
>> OpticalCalibration dialog box of Monteverdi but I cannot see this option. 
>> How to make a customized sensor? I do not even see how the predefined 
>> sensors are selected in this dialog (It was mentioned somewhere in the 
>> documentation that some sensors are integrated in SMAC, but RapidEye is 
>> not, so one have to use the dat files from the site mentioned). 
>>
>> I am really a beginner in OTB so any assistance would be of great help. 
>> Thanks!
>> Petar
>>
>> -- 
>> -- 
>> 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-...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> otb-users+...@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+...@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] custom OTB app "Could not find application"

2016-02-12 Thread Nico Champ

Bonjour,

Je viens de compiler OTB 5.2 sous mac (mavericks)

J'ai la même erreur que Mélanie (ERROR: Could not find application 
"BandMathX" ERROR: Module search path: 
/usr/local/bin/../lib/otb/applications)
lorsque je lance certaines commandes otbcli (par exemple otbcli_BandMathX)

Pour d'autres commandes, pas de souci, par exemple otbcli_ManageNoData se 
lance normalement !

En enquêtant, je me rends que seules certaines commandes otbcli ont été 
mises à jours dans /usr/local/bin au moment de l'install de l'OTB 5.2. Ce 
sont elles qui marchent !
Les autres, créées au moment de la précédente install (OTB 4.4), ne l'ont 
pas été et ne marchent plus !

J'ai commencé à regarder les options du CMakeLists (le normal, pas le 
SuperBuild qui ne marche pas chez moi), histoire de recompiler correctement 
mais je sèche un peu...

Quelqu'un aurait-il une idée ? (les pistes données dans ce fil de mail ne 
semblent pas fonctionner)

Merci !

Nicolas



Le jeudi 11 décembre 2014 14:57:53 UTC+1, Mélanie Durupt a écrit :
>
> Sorry : after a discussion with my colleague, it seems that he had to make 
> some changes in otb code and that's why there is a pb with these app. 
>
> Mélanie
>
> Le mardi 9 décembre 2014 17:47:39 UTC+1, Grizonnet Manuel a écrit :
>>
>> Other idea, do you have the definition of the application type (using ITK 
>> type macro) in the public section of the class definition.
>>
>> Something like this:
>>
>> itkTypeMacro(myImageClassifier, otb::Application);
>>
>> Manuel
>>
>>
>> Le 09/12/2014 17:38, Mélanie Durupt a écrit :
>>
>> I tried this too.  
>> For the name of the application, it is correct : I checked with 
>> copy/search/paste (in the .cxx and CMakeLists) to be sure!
>>
>> Mélanie
>>
>> Le mardi 9 décembre 2014 17:30:01 UTC+1, Otmane Lahlou a écrit : 
>>>
>>> Hi, 
>>>
>>> You can also try to export the environment variable ITK_AUTOLOAD_PATH to 
>>> indicate the directory where your shared library is located.
>>>
>>> export ITK_AUTOLOAD_PATH=*path_to_lib_directory*
>>>
>>> HTH
>>>
>>> Otmane
>>>
>>>
>>>
>>> Le mardi 9 décembre 2014 17:18:57 UTC+1, Guillaume Pasero a écrit : 

 Hi,

 Maybe you should check if "myImageClassifier" is the real name. The 
 name you are using to call an application should match the name defined in 
 the application code :
 -> check in the code of this application, in the method DoInit().
 -> check that you have this line : SetName("myImageClassifier")

 It means that the "official" name of an application is not related to 
 the name of the ".so" library file. When loading a shared library, the 
 launcher will look for the official name that is set in SetName().

 Regards,
 Guillaume

 Le 09/12/2014 16:52, Mélanie Durupt a écrit :

 Hi everyone 

 I have a problem with an app (myImageClassifier) a colleague coded. He 
 is not available for the moment so I ask here. 
 When I launch the app I have this message :

 ERROR: Could not find application "myImageClassifier"
 ERROR: Module search path: /usr/bin/../lib/otb/applications:
 ERROR: Available modules :
 BandMath
 ... 
 VertexComponentAnalysis
 myComputeChangeMap
 myComputeConfusionMatrix
 myDBDecisionFusion
 myFeatureSelection
 myObjectDecisionFusion
 mySegmentTool
 ERROR: No loaded application...

 I tried 
 $ otbcli_myImageClassifier
 $ otbApplicationLauncherCommandLine myImageClassifier 
 /usr/lib/otb/applications/
 and I have the same messages... 

 I work with OTB 4.2 on ubuntu. Of course, "otbapp_myImageClassifier.so 
 " is in /usr/lib/otb/applications/
 I checked the application like in this example : 
 https://groups.google.com/d/msg/otb-users/gu7q0scLcgw/KLi-vnsdP78J

 You can see that in the list of the available modules, there are some 
 personal apps (that work). I don't understand why I have these messages 
 for 
 this particular app...


 Regards,

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



 -- 
  *Guillaume PASERO*
 Ingénieur d'études et développement
 *Business Unit E-SPACE & Geo 

Re: [otb-users] Re: ANN produce not stable results

2016-02-12 Thread Hristo Nikolov
Hi,
I can't see such messages when the model is being built by the GUI 
application.
Could share the version of the OTB you use?

Hristo

On Wednesday, 10 February 2016 16:31:48 UTC+2, Guillaume Pasero wrote:
>
> Hi, 
>
> I think it is possible to get outputs from libSVM during processing.
> When I use this library, I get messages like :
>
> optimization finished, #iter = 113
> nu = 0.038199
> obj = -22.175591, rho = 0.331874
> nSV = 38, nBSV = 28
>
>  Do you get these messages when running the command line application ?
>
> Guillaume
>
> On 02/03/2016 11:20 AM, Hristo Nikolov wrote:
>
> Dear Guillaume, 
> Thank you for your suggestion. As I pointed above I use the GUI version of 
> OTB.
> What I shall do is to follow your advice and move to CLI.
>
> Just a small addition - the libSVM runs for more than 7 days and still not 
> finished.
> Is it possible to integrate some parameter that shows the convergence when
> running the learning phase of the modules in this library? 
> By now the only way for me is to check the amount of memory used by this
> process which is not a good estimate for this purpose.
>
> Hristo
>
> On Friday, 29 January 2016 10:59:44 UTC+2, Guillaume Pasero wrote: 
>>
>> Hi,
>>
>> In order to have stable results you should use the seed parameter, so 
>> that the Random Number Generator used during sample selection always gives 
>> the same samples : in the otbcli , it is the parameter key '-rand'.
>>
>> For the ANN, with the parameter "-classifier.ann.sizes", you can give 
>> multiple sizes to have several layers.
>>
>> HTH,
>>
>> Guillaume
>>
>> On 01/18/2016 05:41 PM, Hristo Nikolov wrote:
>>
>> One more observation - when using polynomial as kernel function I can not 
>> set the degree of the polynomial.
>>
>> On Wednesday, 13 January 2016 15:40:40 UTC+2, Hristo Nikolov wrote: 
>>>
>>> Dear all, 
>>> I have been experimenting with ANN provided from OTB for some months 
>>> now. 
>>> What I experienced is that as module in QGIS the ANN from OTB has 
>>> limitation
>>> of creating only single layer networks, but the results produced remain 
>>> the same
>>> under same initial parameters. Lastly I tried to the otbgui version 
>>> provided by 
>>> OSGeo4W, but it results that even the parameters in the dialog box are 
>>> the 
>>> same the output produced and more specifically the error matrix is 
>>> different 
>>> every time the training takes place.
>>> Could you advise?
>>>
>>> Thank you.
>>> Hristo
>>>
>> -- 
>> -- 
>> 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-...@googlegroups.com
>> To unsubscribe from this group, send email to
>> otb-users+...@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+...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> -- 
>>  *Guillaume PASERO*
>> Responsable technique
>> *Business Unit E-SPACE & Geo Information - Département Image & 
>> Applications*
>>
>> *CS Systèmes d'Information*
>> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
>> 31506 Toulouse Cedex 05 - FRANCE
>> +33 561 17 64 21 - guillaum...@c-s.fr 
>>
> -- 
> -- 
> 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-...@googlegroups.com 
> 
> To unsubscribe from this group, send email to
> otb-users+...@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+...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
> -- 
>  *Guillaume PASERO*
> Responsable technique
> *Business Unit E-SPACE & Geo Information - Département Image & 
> Applications*
>
> *CS Systèmes d'Information*
> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
> 31506 Toulouse Cedex 05 - FRANCE
> +33 561 17 64 21 - guillaum...@c-s.fr  
>

-- 
-- 
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 

Re: [otb-users] custom OTB app "Could not find application"

2016-02-12 Thread Julien Michel

Hi Nicolas,

Mixing libraries from different versions of OTB is the first effect that 
causes your problem I think. It is generally a very bad idea to perform 
several make install in the same installation directory without cleaning 
up previous versions first. I would recommand cleaning all OTB libraries 
and headers in your /usr/local/bin/* and make install again. For future 
install, I would recommend using a dedicated install build for each 
project you compile by hand. Mine is ~/dev/local/otb (for OTB). This 
way, I can get rid of the old OTB installed version with a simple rm -r 
~/dev/local/otb and I am sure I did not remove anything else.


The second effect comes from our change of strategy with respect to 3rd 
party software starting OTB 5.0 : we deactivate all 3rd parties by 
default, which means that the BandMathX application is no longer built 
unless you specifically activate the use of MuParserX during CMake 
configuration. The reason for that is that the default configuration 
builds an OTB with minimal dependencies.


Another thing to note in your case (if you need the BandMathX app) is 
that we no longer embed the source of third parties : you have to 
install MuParserX library yourself if you want to activate the MuParserX 
module. An alternative is to use the Superbuild [1] which will build all 
third parties for you.


So long story short :
- Remove completely your installed OTB, and make install again. That 
should get you rid of those errors, but you will miss some applications 
that require 3rd parties,
- In this case, either install those 3rd parties and activate them in 
cmake configuration, then make install again, or use the Superbuild.


Hope that helps,

Regards,

Julien


[1] 
https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech2.html#x16-220002.1.2



Le 12/02/2016 15:12, Nico Champ a écrit :


Sorry for the French version ! here after, the english one !

So this is my problem...

I just compiled OTB 5.2

Unfortunately, I get the same error as Mélanie when I launch some 
otbcli , for instance otbcli_BandMathX
(ERROR: Could not find application "BandMathX" ERROR: Module search 
path: /usr/local/bin/../lib/otb/applications)



The weird point is that some otbcli work, for instance 
otbcli_ManageNoData


After investigation, I realised that only a few otbcli applications 
were updated when installinf OTB 5.2


The others (for instance otbcli_BandMathX) were not updated !

I started having a look on the CMakeLists.txt to figure out the 
issue... But I'm getting stuck !


And the solutions given by Otmane or Manuel do not seem to work ..

Any idea ? ;-)

Thank you very much in advance !

Nicolas



Le vendredi 12 février 2016 14:53:50 UTC+1, Nico Champ a écrit :


Bonjour,

Je viens de compiler OTB 5.2 sous mac (mavericks)

J'ai la même erreur que Mélanie (ERROR: Could not find application
"BandMathX" ERROR: Module search path:
/usr/local/bin/../lib/otb/applications)
lorsque je lance certaines commandes otbcli (par exemple
otbcli_BandMathX)

Pour d'autres commandes, pas de souci, par exemple
otbcli_ManageNoData se lance normalement !

En enquêtant, je me rends que seules certaines commandes otbcli
ont été mises à jours dans /usr/local/bin au moment de l'install
de l'OTB 5.2. Ce sont elles qui marchent !
Les autres, créées au moment de la précédente install (OTB 4.4),
ne l'ont pas été et ne marchent plus !

J'ai commencé à regarder les options du CMakeLists (le normal, pas
le SuperBuild qui ne marche pas chez moi), histoire de recompiler
correctement mais je sèche un peu...

Quelqu'un aurait-il une idée ? (les pistes données dans ce fil de
mail ne semblent pas fonctionner)

Merci !

Nicolas



Le jeudi 11 décembre 2014 14:57:53 UTC+1, Mélanie Durupt a écrit :

Sorry : after a discussion with my colleague, it seems that he
had to make some changes in otb code and that's why there is a
pb with these app.

Mélanie

Le mardi 9 décembre 2014 17:47:39 UTC+1, Grizonnet Manuel a
écrit :

Other idea, do you have the definition of the application
type (using ITK type macro) in the public section of the
class definition.

Something like this:

itkTypeMacro(myImageClassifier, otb::Application);

Manuel


Le 09/12/2014 17:38, Mélanie Durupt a écrit :

I tried this too.
For the name of the application, it is correct : I
checked with copy/search/paste (in the .cxx and
CMakeLists) to be sure!

Mélanie

Le mardi 9 décembre 2014 17:30:01 UTC+1, Otmane Lahlou a
écrit :

Hi,

You can also try to export the environment variable
ITK_AUTOLOAD_PATH to indicate the directory where
your shared library is located.

export