Package boofcv.alg.distort.motion
Class MotionBlurOps
java.lang.Object
boofcv.alg.distort.motion.MotionBlurOps
Operations related to simulating motion blur
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Kernel2D_F32
linearMotionPsf
(double lengthOfMotion, double phi) Creates a PSF for linear motion blur with constant velocity.
-
Constructor Details
-
MotionBlurOps
public MotionBlurOps()
-
-
Method Details
-
linearMotionPsf
Creates a PSF for linear motion blur with constant velocity. This is done by using the equations found in [1] for phi=0, then rotating the image and converting into a kernel. [1] Reginald L. Lagendijk, Jan Biemond "Basic Methods for Image Restoration and Identification" 2005- Parameters:
lengthOfMotion
- Length of motion for the blur. velocity*time.phi
- Angle of blur in the image. Radians.- Returns:
- 2D Kernel that represents the PSF
-