- if(args_info.ellips_flag)
- {
-
- std::vector<double> c, a;
- if (args_info.center_given)
- {
- if (args_info.center_given != dim)
- {
- std::cerr << "ERROR : image has " << dim << "dimensions, --center should have the same number of values." << std::endl;
- exit(-1);
- }
- for(unsigned int i=0; i<dim; i++)
- c.push_back(args_info.center_arg[i]);
- }
-
- if (args_info.axes_given)
- {
- if (args_info.axes_given != dim)
- {
- std::cerr << "ERROR : image has " << dim << "dimensions, --axes should have the same number of values." << std::endl;
- exit(-1);
- }
- for(unsigned int i=0; i<dim; i++)
- a.push_back(args_info.axes_arg[i]);
-
- }
- else
- for(unsigned int i=0; i<dim; i++)
- a.push_back(10.0);
-
- if ((args_info.center_given))
- filter.SetSphericRegion(a,c);
- else
- filter.SetSphericRegion(a);
+ if(args_info.ellips_flag) {
+
+ std::vector<double> c, a;
+ if (args_info.center_given) {
+ if (args_info.center_given != dim) {
+ std::cerr << "ERROR : image has " << dim << "dimensions, --center should have the same number of values." << std::endl;
+ exit(-1);
+ }
+ for(unsigned int i=0; i<dim; i++)
+ c.push_back(args_info.center_arg[i]);