Before, the volume was fixed to 1cc
Now, if the volume option is set, multiply the given volume by 1000 to have in mc
option "input" i "Input first image filename" string yes
option "mask" m "Mask image filename (uchar)" string no
option "allow_resize" r "Resize mask if different from input" flag off
+option "volume" - "Volume of the filter in cc" double default="1" no
}
double volume = 1000; //1 cc into mc
+ if (mArgsInfo.volume_given)
+ volume *= mArgsInfo.volume_arg;
const double PI = 3.141592653589793238463;
double radius = std::pow(3*volume/(4*PI),1./3);