Re: [otb-users] Re: New remote module: otb-mosaic

2017-08-01 Thread user123
Hello
I have tried OTB-contrib binary package as well but no success. 

I am Compiling OTB from source code in CMake using MS Visual Studio 14 2015 
(64 bit), 

I select the source and output directories and click 'Configure' in CMake, 
it takes a few minutes and compiles successfully and displays some options 
in red, I enable the option "Module Mosaic" and again click "Configure", 
I tried the above step in two ways, WITH and WITHOUT copying the module 
mosaic folder into OTB\Modules\Remote
both times it gives me the same error 
CMake Error at CMake/OTBModuleRemote.cmake:37 (message):
Failed to clone repository: 'http://tully.ups-tlse.fr/lassallep/grm.git'
Call Stack (most recent call first):
CMake/OTBModuleRemote.cmake:132 (_git_clone)
CMake/OTBModuleRemote.cmake:177 (_fetch_with_git)
Modules/Remote/otbGRM.remote.cmake:2 (otb_fetch_module)
Modules/Remote/CMakeLists.txt:26 (include)

I would appreciate any kind of help please. 
Thank you for your time. 
Regards

-- 
-- 
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] OTB-Mosaic

2017-08-01 Thread user123
Hello Guillaume, 
Thank you for responding,  I am not trying to build this module alone 
without OTB.
I am Compiling OTB from source code in CMake using MS Visual Studio 14 2015 
(64 bit), 

I select the source and output directories and click 'Configure' in CMake, 
it takes a few minutes and compiles successfully and displays some options 
in red, I enable the option "Module Mosaic" and again click "Configure", 
I tried the above step in two ways, WITH and WITHOUT copying the module 
mosaic folder into OTB\Modules\Remote
both times it gives me the same error 
CMake Error at CMake/OTBModuleRemote.cmake:37 (message):
Failed to clone repository: 'http://tully.ups-tlse.fr/lassallep/grm.git'
Call Stack (most recent call first):
CMake/OTBModuleRemote.cmake:132 (_git_clone)
CMake/OTBModuleRemote.cmake:177 (_fetch_with_git)
Modules/Remote/otbGRM.remote.cmake:2 (otb_fetch_module)
Modules/Remote/CMakeLists.txt:26 (include)

I would appreciate any kind of help please. 
Thank you for your time. 
Regards

-- 
-- 
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] OTB-Mosaic

2017-08-01 Thread user123
Hello Guillaume,
Thankyou for your response, I am not  trying to build this module alone 
without OTB, I am configuring OTB from source Code for this remote module 
compilation, OTB alone easily compiles but when I enable the remote module 
option (after copying the Remote Mosaic Module file 
[https://github.com/remicres/otb-mosaic ] to OTB\Modules\Remote) , CMake 
gives following error

Setting GDAL_CONFIG_CHECKING to ON. (all GDAL tests will run again)

CMake Error at Modules/ThirdParty/GDAL/otb-module-init.cmake:51 (message):
Syntax error in cmake code at

C:/OTB-develop/OTB-develop/Modules/ThirdParty/GDAL/otb-module-init.cmake:60

when parsing string

Compiling Test GDAL_VERSION - Failed 



COMPILE_OUTPUT_GDAL_VERSION: 'Change Dir:
C:/otb_configured/CMakeFiles/CMakeTmp



Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe"
"cmTC_39413.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"

Microsoft (R) Build Engine version 14.0.25420.1



Copyright (C) Microsoft Corporation. All rights reserved.





Build started 02-Aug-17 9:03:57 AM.



Project "C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" on node
1 (default targets).



PrepareForBuild:



Creating directory "cmTC_39413.dir\Debug\".


Creating directory "C:\otb_configured\CMakeFiles\CMakeTmp\Debug\".


Creating directory "cmTC_39413.dir\Debug\cmTC_39413.tlog\".



InitializeBuildStatus:



Creating "cmTC_39413.dir\Debug\cmTC_39413.tlog\unsuccessfulbuild" because 
"AlwaysCreate" was specified.



ClCompile:



C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c 
/IC:\OSGeo4W64\include /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D 
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise 
/Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_39413.dir\Debug\\" 
/Fd"cmTC_39413.dir\Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue 
/bigobj /bigobj 
"C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx"


Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86


Copyright (C) Microsoft Corporation. All rights reserved.



cl /c /IC:\OSGeo4W64\include /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D 
_WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS 
/fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR 
/Fo"cmTC_39413.dir\Debug\\" /Fd"cmTC_39413.dir\Debug\vc140.pdb" /Gd /TP 
/analyze- /errorReport:queue /bigobj /bigobj 
"C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx"



gdalVersionTest.cxx




C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78):
warning C4018: '<': signed/unsigned mismatch
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



Link:



C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe 
/ERRORREPORT:QUEUE 
/OUT:"C:\otb_configured\CMakeFiles\CMakeTmp\Debug\cmTC_39413.exe" 
/INCREMENTAL /NOLOGO C:\OSGeo4W64\lib\gdal_i.lib kernel32.lib user32.lib 
gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' 
uiAccess='false'" /manifest:embed /DEBUG 
/PDB:"C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.pdb" 
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
/IMPLIB:"C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.lib" 
/MACHINE:X86 /SAFESEH /machine:X86 cmTC_39413.dir\Debug\gdalVersionTest.obj


Creating library C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.lib 
and object C:/otb_configured/CMakeFiles/CMakeTmp/Debug/cmTC_39413.exp



gdalVersionTest.obj : error LNK2019: unresolved external symbol
_GDALVersionInfo@4 referenced in function _main
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64'
conflicts with target machine type 'X86'
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



C:\otb_configured\CMakeFiles\CMakeTmp\Debug\cmTC_39413.exe : fatal error
LNK1120: 1 unresolved externals
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]



Done Building Project
"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default
targets) -- FAILED.





Build FAILED.





"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default target)
(1) ->



(ClCompile target) -> 



C:\OTB-develop\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78): 
warning C4018: '<': signed/unsigned mismatch 
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]







"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default target)
(1) ->



(Link target) -> 



C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64' 
conflicts with target machine type 'X86' 
[C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj]







"C:\otb_configured\CMakeFiles\CMakeTmp\cmTC_39413.vcxproj" (default target)
(1) ->



(Link target) -> 



gdalVersionTest.obj : error LNK2019: unresolved external symbol 
_GDALVersionInfo@4 referenced i

[otb-users] OTB Compilation from Source Code

2017-08-01 Thread user123


Hello, I am trying to configure OTB from source code, but getting this 
error in CMake, I would appreciate any sort of help. 




Setting GDAL_CONFIG_CHECKING to ON. (all GDAL tests will run again)

CMake Error at Modules/ThirdParty/GDAL/otb-module-init.cmake:51 (message):
Syntax error in cmake code at

C:/Develop_OTB/OTB-develop/Modules/ThirdParty/GDAL/otb-module-init.cmake:60

when parsing string

Compiling Test GDAL_VERSION - Failed 



COMPILE_OUTPUT_GDAL_VERSION: 'Change Dir:
C:/Configure_OTB/CMakeFiles/CMakeTmp



Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe"
"cmTC_c0b00.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"

Microsoft (R) Build Engine version 14.0.25420.1



Copyright (C) Microsoft Corporation. All rights reserved.





Build started 02-Aug-17 9:22:18 AM.



Project "C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" on node 1
(default targets).



PrepareForBuild:



Creating directory "cmTC_c0b00.dir\Debug\".


Creating directory "C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\".


Creating directory "cmTC_c0b00.dir\Debug\cmTC_c0b00.tlog\".



InitializeBuildStatus:



Creating "cmTC_c0b00.dir\Debug\cmTC_c0b00.tlog\unsuccessfulbuild" because 
"AlwaysCreate" was specified.



ClCompile:



C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe /c 
/IC:\OSGeo4W64\include /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D 
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise 
/Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_c0b00.dir\Debug\\" 
/Fd"cmTC_c0b00.dir\Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue 
/bigobj /bigobj 
"C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx"


Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86


Copyright (C) Microsoft Corporation. All rights reserved.



cl /c /IC:\OSGeo4W64\include /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D 
_WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS 
/fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR 
/Fo"cmTC_c0b00.dir\Debug\\" /Fd"cmTC_c0b00.dir\Debug\vc140.pdb" /Gd /TP 
/analyze- /errorReport:queue /bigobj /bigobj 
"C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx"



gdalVersionTest.cxx




C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78):
warning C4018: '<': signed/unsigned mismatch
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]



Link:



C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe 
/ERRORREPORT:QUEUE 
/OUT:"C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\cmTC_c0b00.exe" 
/INCREMENTAL /NOLOGO C:\OSGeo4W64\lib\gdal_i.lib kernel32.lib user32.lib 
gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib 
comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' 
uiAccess='false'" /manifest:embed /DEBUG 
/PDB:"C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.pdb" 
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT 
/IMPLIB:"C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.lib" 
/MACHINE:X86 /SAFESEH /machine:X86 cmTC_c0b00.dir\Debug\gdalVersionTest.obj


Creating library C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.lib 
and object C:/Configure_OTB/CMakeFiles/CMakeTmp/Debug/cmTC_c0b00.exp



gdalVersionTest.obj : error LNK2019: unresolved external symbol
_GDALVersionInfo@4 referenced in function _main
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]



C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64'
conflicts with target machine type 'X86'
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]



C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\cmTC_c0b00.exe : fatal error
LNK1120: 1 unresolved externals
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]



Done Building Project
"C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default targets)
-- FAILED.





Build FAILED.





"C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default target)
(1) ->



(ClCompile target) -> 



C:\Develop_OTB\OTB-develop\Modules\ThirdParty\GDAL\gdalVersionTest.cxx(78): 
warning C4018: '<': signed/unsigned mismatch 
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]







"C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default target)
(1) ->



(Link target) -> 



C:\OSGeo4W64\lib\gdal_i.lib : warning LNK4272: library machine type 'x64' 
conflicts with target machine type 'X86' 
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]







"C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj" (default target)
(1) ->



(Link target) -> 



gdalVersionTest.obj : error LNK2019: unresolved external symbol 
_GDALVersionInfo@4 referenced in function _main 
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]


C:\Configure_OTB\CMakeFiles\CMakeTmp\Debug\cmTC_c0b00.exe : fatal error 
LNK1120: 1 unresolved externals 
[C:\Configure_OTB\CMakeFiles\CMakeTmp\cmTC_c0b00.vcxproj]





2 Warning(s)


2 Error(s)






Re: [otb-users] Region growing for tree canopy detection

2017-08-01 Thread Guillaume Pasero

  
  
Hi,
I don't think the region growing is exposed in an application.
  You can try to look into applications :

  ConnectecComponentSegmentation : there is a mathematical
_expression_ for the connected component but also for and OBIA
_expression_
  Segmentation: proposes several segmentation algorithms.
  

Hope it helps,
Guillaume

On 06/08/2017 03:45 PM, Alexander Bruy
  wrote:


  Hi,

I'm looking for a way to delineate tree canopies from hight resolution raster.
Input data include RGB and hyperspectral rasters and point shapefile with
points represeting individual tree crown center. Desired output is a polygon
vector containing a individual tree crown limits, raster output also
ok if it can
be used for vectorization.

As I understand, this task can be solved by using "region growing" segmentation.
OTB Software Guide [0] and OTB API docs [1] reference this algorithm, but I can
find it among command-line tools. Is it available only via API? Maybe I can also
use some other algorithms?

Sample of the desired output attached. Blue dots are tree top points,
red polygons
represent each tree canopy.

[0] https://www.orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech16.html
[1] https://www.orfeo-toolbox.org/doxygen/group__RegionGrowingSegmentation.html

Thanks



-- 
  

  
  
  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] OTB-Mosaic

2017-08-01 Thread Guillaume Pasero

  
  
Hi,
It looks like you try to build this module alone without OTB,
  which is not possible. You should try to build OTB (version 6.0 or
  above), and when configuring the build, you can enable the
  Module_Mosaic option. 

Regards,
Guillaume


On 07/25/2017 08:47 AM, user123 wrote:


  Hello, I really appreciate your help, 
I am still getting this error, attached is the error
  reference. 
and i am unable to find cmake option 'Module_Mosaic' to
  turn it to ON, c

  CMake Error at
CMakeLists.txt:2 (otb_module_impl):
Unknown CMake command "otb_module_impl".

  
  CMake Warning
(dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of
code such as

cmake_minimum_required(VERSION 3.9)

should be added at the top of the file. The version
specified may be lower
if you wish to support older CMake versions for this
project. For more
information run "cmake --help-policy CMP".
This warning is for project developers. Use -Wno-dev to
suppress it.
  Thank you again. 
  

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