Converted resample method/function to virtual methods so we can do the filter streaming.