[otb-users] installing OTB on QGIS 2.18.1

2017-01-02 Thread Mochamad Firman
Hi everyone
I am Firman Ghazali. Currently I am using QGIS 2.18.1, It installed on Windows 
8 64 bit and now I would like to use Orfeo Toolbox. 
After I downloaded OTB-5.8.0-win64, and follow the installation procedure on 
www.orfeo-toolbox.org, I got the problem that its not works, I can not use it 
on Qgis.
Please show me how to fix it?
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] How to use the vector from segmentation to classify an image?

2017-01-02 Thread Geoffrey Balme
I forgot to say that after the segmentation, I added a field in my vector 
attribute table named "training", and I gave some numeric values to few 
polygons based on the classes I want the segments to be classified in (3 
classes)

So now I'm with a few polygons having a training value, and most of the 
polygon having no training value, and I want to do the svm classification 
from this.

Le lundi 2 janvier 2017 23:52:47 UTC+1, Geoffrey Balme a écrit :
>
> Hi Guillaume,
>
> I'm also trying to do supervised object-based classification.
> What I did so far is a meanshift segmentation on my satellite raster image.
> Then I did TrainImagesClassifier (svm) on the vector results of the 
> segmentation.
> And at this point I'm not sure anymore what to do as there was no output 
> on the previous step.
> Could you guide me from the segmentation to have an object-based 
> classification using SVM ?
>
> (I tried to do OGRLayerClassification, but had no idea of what to put in 
> the xml inputs etc..., the only input I have are my raster and my 
> segmentation vector result)
>
> Thank you !
>
> Le jeudi 24 novembre 2016 14:46:00 UTC+1, Guillaume Pasero a écrit :
>>
>> Hi Patricia,
>>
>> If I understand right, you want to perform object-based classification. 
>>
>> In OTB-5.6.1 there is the application TrainVectorClassifier to train a 
>> classifier based on input geometries. You have to set several fields in the 
>> geometries you want to use for training :
>>
>> - one field to indicate the class of the geometry
>>
>> - several numeric fields to store the features attached to geometries.
>>
>> The fields can be extracted from a raster with LSMSVectorization and 
>> modified with QGis.
>>
>> After the training, you can either apply the model on the full set of 
>> geometries (with OGRLayerClassifier), or try to apply it on a raster (with 
>> ImageClassifier, but more difficult).
>>
>> Regards,
>>
>> Guillaume
>> On 11/24/2016 02:09 PM, Patricia Lourenco wrote:
>>
>> Dear all, 
>> I am new with OTB-Monteverdi 5-6-1.
>>
>> I want to classify an image based on the segments created in the 
>> LSMVSVectorization (step 4 of the segmentation)using OTB/Monteverdi 
>> versions 5.6.1.
>> However, I am not being able to do it.
>>
>> My questions are:
>>
>> 1. Which are the steps that I should take to do a classification based on 
>> segmentation?
>>
>> 2. Which OTB-Application should I use to select the segments for my 
>> classes?
>>
>> Thank you, in advance, for your help.
>>
>> Sincerely,
>> Patricia
>> -- 
>> -- 
>> 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 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] How to use the vector from segmentation to classify an image?

2017-01-02 Thread Geoffrey Balme
Hi Guillaume,

I'm also trying to do supervised object-based classification.
What I did so far is a meanshift segmentation on my satellite raster image.
Then I did TrainImagesClassifier (svm) on the vector results of the 
segmentation.
And at this point I'm not sure anymore what to do as there was no output on 
the previous step.
Could you guide me from the segmentation to have an object-based 
classification using SVM ?

(I tried to do OGRLayerClassification, but had no idea of what to put in 
the xml inputs etc..., the only input I have are my raster and my 
segmentation vector result)

Thank you !

Le jeudi 24 novembre 2016 14:46:00 UTC+1, Guillaume Pasero a écrit :
>
> Hi Patricia,
>
> If I understand right, you want to perform object-based classification. 
>
> In OTB-5.6.1 there is the application TrainVectorClassifier to train a 
> classifier based on input geometries. You have to set several fields in the 
> geometries you want to use for training :
>
> - one field to indicate the class of the geometry
>
> - several numeric fields to store the features attached to geometries.
>
> The fields can be extracted from a raster with LSMSVectorization and 
> modified with QGis.
>
> After the training, you can either apply the model on the full set of 
> geometries (with OGRLayerClassifier), or try to apply it on a raster (with 
> ImageClassifier, but more difficult).
>
> Regards,
>
> Guillaume
> On 11/24/2016 02:09 PM, Patricia Lourenco wrote:
>
> Dear all, 
> I am new with OTB-Monteverdi 5-6-1.
>
> I want to classify an image based on the segments created in the 
> LSMVSVectorization (step 4 of the segmentation)using OTB/Monteverdi 
> versions 5.6.1.
> However, I am not being able to do it.
>
> My questions are:
>
> 1. Which are the steps that I should take to do a classification based on 
> segmentation?
>
> 2. Which OTB-Application should I use to select the segments for my 
> classes?
>
> Thank you, in advance, for your help.
>
> Sincerely,
> Patricia
> -- 
> -- 
> 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 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: Installation of OTB on Eclipse neon C++

2017-01-02 Thread kipro31
Hi and thank you for helping me.

So I'm trying to use OTB with MSVC but I still have problems.

-In optional there is a download for python but I don't understand why is 
it there ?
-The line :  call "C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC\vcvarsall.bat" %COMPILER_ARCH%, is ofc not working because i don't 
have visual studio since I want to develope on Eclipse ...
-The line : git clone --branch=develop 
https://git.orfeo-toolbox.org/git/otb.git src, is not working, cmd.exe 
doesn't understand what is the "git" command.

And those lines doesn't work etiher .. : 

cmake ..\src -GNinja  

ninja



-- 
-- 
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] How to perform automatic contrast enhancement and color correction ?

2017-01-02 Thread Guillaume Pasero

  
  
Hi Léo,
In OTB there is an application to perform basic conversion :
  otbcli_Convert.
This applications allows to convert the dynamic of an image to an
  output pixels type (linear and log transform supported). It will
  compute min/max for each band and stretch this dynamic to the
  output range of your destination pixel type (i.e. 0-255 for
  uint8). By default, 2% of the histogram are cut on each side (can
  be tuned). You can also supply a mask to discard pixels during the
  histogram computation (can be useful for clouds). 

Regards,
Guillaume

On 12/12/2016 04:10 AM, Léo HUERTA
  wrote:


  Hi everybody,

I 'm currently working on Pleiades Datasets, and i would like to
perform automatic contrast enhancement and color correction, and
i would like to know if anybody know a workflow to do that...
I would like to reproduce a thing like "OVR" from Pleiades Data
distributed by Airbus Defense & Space.

I experimented software like Image magick with this kind of
code:
convert -monitor -modulate 100,130 -channel R -gamma 1 -channel
G -gamma 0.95 -channel B -gamma 0.875 -channel RGB
-sigmoidal-contrast 11x40% %OUT%BUNDLE_ORTHO_RGB.TIF -compress
lzw %OUT%BUNDLE_ORTHO_RGB_CC.TIF
It's not bad but, i spend lot of time trying to find the correct
parameters... And i don't know how to calculate them
automatically.

A good software (but not open source) do a thing like that:
Spectral discovery (by Geosage, an Australian company), this
software perform L8 pre-processing (for data visualisation
only): this soft read metada (MTL files, like DIMAP for
pleiades), to estimate parameters for stretching, and scaling to
produce a good looking L8 RGB tiff. I think it is possible to do
that with the dimap but i don't know how...

I have read a good paper about color correction for sat imagery:

An Inquiry on Contrast Enhancement Methods for Satellite Images
They speak about to very good algo: MSR (Multi Scale Retinex)
  and LCC (Local Color Correction), but i don't know how to
  aplly them on my Pleiades dataset.


If anyone want to share about contrast enhancement and color
  correction, i am very happy to share my ressource.
Thank you for your time
Léo




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


-- 
  

  
  
  Guillaume PASERO
Responsable technique
Business Unit ESPACE & GeoInformation -
  Département Payload Data & 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 - guillaume.pas...@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 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: Installation of OTB on Eclipse neon C++

2017-01-02 Thread Rashad

Hello,

you could also use OTB with MSVC. I had the wiki for Eclipse, it will work 
with older version of OTB and you could try same procedure with new version.

Making same tutorial to work with last OTB release can be done but one has 
to jump through some hoops. 

So.. if that scares you, then use otb with msvc.

all you have to download is xdk, and tools archive for windows.

Here is a draft of update wiki page: 
https://wiki.orfeo-toolbox.org/index.php/OTB_development_on_Windows

If you find any steps missing or if these didn't work, let me know .





On Monday, January 2, 2017 at 10:16:06 AM UTC+1, Guillaume Pasero wrote:
>
> Hi,
>
> Indeed, OTB uses CMake to compile libraries and executables. Here is the 
> workflow :
>
>- You give CMake all the details on your build : build type, path to 
>dependencies, various compilation options,... 
>- CMake configures the build folder and generate standard makefiles 
>(can vary depending on the platform and the chosen generator)
>- run 'make' to compile. 
>
> Maybe these pages can give you some hint :
> https://cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial
>
> 
> http://sgpsproject.sourceforge.net/JavierVGomez/index.php/How_to_configure_a_C/C%2B%2B_project_with_Eclipse_and_CMake
>
> HTH
> Guillaume
>
> On 01/01/2017 11:48 AM, kipro31 wrote:
>
> Still need help if someone knows ... 
>
> happy new year 
>
> Le vendredi 30 décembre 2016 00:03:37 UTC+1, kipro31 a écrit : 
>>
>> Hey guys, 
>>
>> I am an IT student and I have a project about image segmentation and I 
>> have to exploit boost and OTB libraries ! I have successfully installed 
>> boost but I am doing exactly the same for OTB and it is not working 
>> (Project > Properties > and I am adding all the paths of 'libs' in the 
>> settings of eclipse). So I investigated on it  and I heard that I need 
>> something called "CMake" for OTB and I have followed this tutorial : 
>> https://wiki.orfeo-toolbox.org/index.php/OTB_development_on_Windows , 
>> and I have no idea what to do with the project I now have in Eclipse 
>> (Cmake@OTB).
>>
>> If somebody could help me on this ! 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-...@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 ESPACE & GeoInformation - Département Payload Data & 
> 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 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: Installation of OTB on Eclipse neon C++

2017-01-02 Thread Guillaume Pasero

  
  
Hi,
Indeed, OTB uses CMake to compile libraries and executables. Here
  is the workflow :

  You give CMake all the details on your build : build type,
path to dependencies, various compilation options,...
  CMake configures the build folder and generate standard
makefiles (can vary depending on the platform and the chosen
generator)
  
  run 'make' to compile.

Maybe these pages can give you some hint :
https://cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial
http://sgpsproject.sourceforge.net/JavierVGomez/index.php/How_to_configure_a_C/C%2B%2B_project_with_Eclipse_and_CMake

HTH
Guillaume

On 01/01/2017 11:48 AM, kipro31 wrote:


  Still need help if someone knows ...


happy new year 
  
  Le vendredi 30 décembre 2016 00:03:37 UTC+1, kipro31 a écrit :
  
Hey guys,
  
  
  I am an IT student and I have a project about image
segmentation and I have to exploit boost and OTB
libraries ! I have successfully installed boost but I am
doing exactly the same for OTB and it is not working
(Project > Properties > and I am adding all the
paths of 'libs' in the settings of eclipse). So I
investigated on it  and I heard that I need something
called "CMake" for OTB and I have followed this tutorial
: https://wiki.orfeo-toolbox.org/index.php/OTB_development_on_Windows
, and I have no idea what to do with the project I now
have in Eclipse (Cmake@OTB).
  
  
  If somebody could help me on this ! 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.


-- 
  

  
  
  Guillaume PASERO
Responsable technique
Business Unit ESPACE & GeoInformation -
  Département Payload Data & 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 - guillaume.pas...@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 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.