- Oct 13, 2020
-
-
Julien Osman authored
-
- Jul 01, 2020
-
-
Cédric Traizet authored
-
- Jun 26, 2020
-
-
Cédric Traizet authored
-
- Apr 23, 2020
-
-
Julien Osman authored
-
- Mar 02, 2020
-
-
Guillaume Pasero authored
-
- Feb 06, 2020
-
-
Guillaume Pasero authored
-
- Feb 04, 2020
-
-
Guillaume Pasero authored
-
- Jan 30, 2020
-
-
Guillaume Pasero authored
-
- Jan 29, 2020
-
-
Guillaume Pasero authored
-
- Sep 17, 2019
-
-
Cédric Traizet authored
-
- Apr 03, 2019
-
-
Guillaume Pasero authored
-
- Mar 04, 2019
-
-
Victor Poughon authored
-
- Jan 15, 2019
-
-
Victor Poughon authored
-
- Jan 14, 2019
-
-
Julien Michel authored
-
- Sep 11, 2018
-
-
Guillaume Pasero authored
-
- Aug 17, 2018
-
-
Guillaume Pasero authored
-
- Aug 02, 2018
-
-
Victor Poughon authored
Here's what I did: find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/SetFileName\((.*)\.c_str\(\)/SetFileName\(\1/"
-
Victor Poughon authored
-
- Jul 18, 2018
-
-
Victor Poughon authored
This was done with this script: #!/bin/bash set -eou pipefail # Use C++11 sstream constructor from string # Exclude 'ThirdParty' because it uses ossimFilename type find Modules/ Examples/ -not -iwholename "*ThirdParty*" -type f -print0 | xargs -0 sed -i -E "s/std::ifstream (.*)\((.*)\.c_str\(\)/std::ifstream \1\(\2/" find Modules/ Examples/ -not -iwholename "*ThirdParty*" -type f -print0 | xargs -0 sed -i -E "s/std::ofstream (.*)\((.*)\.c_str\(\)/std::ofstream \1\(\2/" # Use C++11 ::open(const std::string&) of ifstream, ofstream, etc. # Exclude ThirdParty because of ossimFilename type find Modules/ Examples/ -not -iwholename "*ThirdParty*" -type f -print0 | xargs -0 sed -i -E "s/\.open\((.*).c_str\(\)/\.open\(\1/" # No need for c_str when outputing to std::cout and such find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/\.c_str\(\) ?<</ <</" # Use itk::ExceptionObject::SetDescription and SetLocation string versions find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/e\.SetDescription\((.*)\.c_str\(\)\)/e\.SetDescription\(\1\)/" find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/e\.SetLocation\((.*)\.c_str\(\)\)/e\.SetLocation\(\1\)/" # Use itksys::SystemTool:: string versions find Modules/ Examples/ -type f -print0 | xargs -0 sed -i -E "s/itksys::SystemTools::(.*)\((.*)\.c_str\(\)/itksys::SystemTools::\1\(\2/" # Exclude otbLogger because it uses GetCurrentDateTime which does not have a string version git checkout -- Modules/Core/Common/src/otbLogger.cxx # Exclude test/otbOGRLayerStreamStitchingFilter.cxx because there's a double use which is not compatible with the regex git checkout -- Modules/Segmentation/OGRProcessing/test/otbOGRLayerStreamStitchingFilter.cxx
-
- Jul 12, 2018
-
-
Laurențiu Nicola authored
find \( -name "*.hxx" -or -name "*.h" -or -name "*.cxx" \) -not -path "*ThirdParty*" -print0 | xargs -0 sed -sri "s/([^<])vcl_(adjacent_find|and|binary|binary_search|copy|copy_|count|count_if|equal|equal_range|fill|fill_n|find|find_end|find_first_of|find_if|for_each|generate|generate_n|generators_|heap|includes|inplace_merge|iter_swap|lexicographical_compare|lower_bound|make_heap|max|min|max_element|merge|merge_|min_element|mismatch|next_permutation|nth_element|partial_sort|partial_sort_copy|partition|stable_partition|partitions_|pop_heap|prev_permutation|push_heap|random_shuffle|remove|remove_copy|remove_copy_if|remove_if|replace|replace_copy|replace_copy_if|replace_if|reverse|reverse_copy|rotate|rotate_copy|search|search_n|set_difference|set_intersection|set_symmetric_difference|set_union|sort|sort_|sort_heap|stable_sort|swap|swap_|swap_ranges|transform|unique|unique_copy|upper_bound|bitset|abs|acos|asin|atan|atan2|ceil|cos|cosh|exp|fabs|floor|fmod|frexp|ldexp|log|log10|modf|pow|sin|sinh|sqrt|tan|tanh|complex|real|imag|arg|norm|conj|polar|jmp_buf|longjmp|sig_atomic_t|raise|signal|va_list|ptrdiff_t|size_t|FILE|fpos_t|fopen|fclose|feof|ferror|fflush|fgetc|fgetpos|fgets|fwrite|fread|fseek|ftell|perror|clearerr|rename|fputc|fputs|freopen|fsetpos|getc|getchar|gets|putc|putchar|puts|rewind|setbuf|setvbuf|tmpfile|tmpnam|ungetc|printf|sprintf|fprintf|vprintf|vsprintf|vfprintf)/\1std::\2/g" find \( -name "*.hxx" -or -name "*.h" -or -name "*.cxx" \) -not -path "*ThirdParty*" -print0 | xargs -0 sed -sri "s/<<vcl_log/<<std::log/g"
-
- Jun 25, 2018
-
-
Manuel Grizonnet authored
-
Manuel Grizonnet authored
OTB followed since the beginning the ITK convention and use .txx extension for all template classes. Nevertheless, some development tools do not recognize .txx file extension. Other tool like GitHub can't do in-browser syntax highlighting for txx files I think. The root problem is the use of the txx which should be changed to hxx (or hpp). In 2011, after an in-depth discussion near April 20, 2011 on the Insight-Developers mailing list, ITK rename all txx files to hxx (and event prevent the push of .txx files with a pre-commit hook). It happens is major release v4. You can find some arguments in the discussion about the change and also in other projects related to ITK which applied the same modification, see for instance VXL: https://github.com/vxl/vxl/issues/209 This commit apply now the same modification for OTB. I understand that it will change some habit for developers and don't bring new features but I think that in general it is better to stay align with ITK guidelines. In my opinion, it always facilitate the use of OTB and ITK together if we share when we can the same code architecture, directory organization, naming conventions...
-
- May 29, 2018
-
-
Antoine Regimbeau authored
-
- Apr 03, 2018
-
-
Guillaume Pasero authored
-
- Mar 06, 2018
-
-
Julien Michel authored
-
Julien Michel authored
-
- Feb 22, 2018
-
-
Julien Michel authored
-
- Feb 12, 2018
-
-
Guillaume Pasero authored
-
- Feb 09, 2018
-
-
Guillaume Pasero authored
-
- Dec 14, 2017
-
-
Antoine Regimbeau authored
-
- Dec 11, 2017
-
-
Antoine Regimbeau authored
-
- Oct 27, 2017
-
-
Antoine Regimbeau authored
-
- Oct 25, 2017
-
-
Antoine Regimbeau authored
-
- Sep 04, 2017
-
-
Rémi Cresson authored
-
- May 18, 2017
-
-
Victor Poughon authored
GetGdalReadImageFileName does not set its second argument when its first argument is a non empty directory and not a supported format (OTB supports opening directories in some cases). But in that case it does return false, which was not handled before this commit. This resulted in a misleading error message and a corrupted m_FileName.
-
Victor Poughon authored
-
- May 17, 2017
-
-
Victor Poughon authored
-
- May 16, 2017
-
-
Victor Poughon authored
-
- May 10, 2017
-
-
Victor Poughon authored
-
- Apr 07, 2017
-
-
Marina Bertolino authored
-