Batch median filter in Processing