From: dsarrut Date: Wed, 30 Jun 2010 06:15:45 +0000 (+0000) Subject: autocrop X-Git-Tag: v1.2.0~584 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e32d85dbd51fa1c9ab9fd0db0acaf396ceecb88e;p=clitk.git autocrop --- diff --git a/tools/clitkAutoCrop.cxx b/tools/clitkAutoCrop.cxx new file mode 100644 index 0000000..93d0e01 --- /dev/null +++ b/tools/clitkAutoCrop.cxx @@ -0,0 +1,44 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - BSD See included LICENSE.txt file + - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +======================================================================-====*/ + +// clitk +#include "clitkAutoCrop_ggo.h" +#include "clitkAutoCropGenericFilter.h" + +//-------------------------------------------------------------------- +int main(int argc, char * argv[]) +{ + + // Init command line + GGO(clitkAutoCrop, args_info); + CLITK_INIT; + + // Filter + typedef clitk::AutoCropGenericFilter FilterType; + FilterType::Pointer filter = FilterType::New(); + + filter->SetArgsInfo(args_info); + filter->Update(); + + if (filter->HasError()) { + std::cout << filter->GetLastError() << std::endl; + } + + return EXIT_SUCCESS; +} // This is the end, my friend +//--------------------------------------------------------------------