In the guided filter that performs operations such as denoising and contrast correction with the help of a guide image, the positions of corresponding subjects need to be completely aligned, otherwise the misaligned regions in the output image are deteriorated by blur. In this paper, we propose a guided filter for images which include moving dynamic regions. Our filter uses correspondences of local covariance matrices instead of using the conventional pixel-topixel correspondences. In addition, we also propose a classification method to detect the dynamic regions by using the support vector machine. Combining two kinds of guided filters for static / dynamic regions, more natural resulting images are obtained.