[otb-users] OTB Compilation from Source Code
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
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.