changes to basefilter
DBL_MAX was preventing compilation on linux, changed to std::numeric_limits<double>::max() that should be the c++ way for num limits
rgb to scalar field small bug fix