The function fspecial from the image package produces wrong results with the "motion" filter shape.
When the first parameter is set to "motion" and when the third parameter which then represents the orientation of the motion is set to something other than null degrees, then the resulting matrix only contains NA elements. I have experienced this problem on a Cygwin installation. Here is an example: psf = fspecial("motion", 5, 0) psf = 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.2 0.2 0.2 0.2 0.2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 This is example produced correct results, but when I change the orientation parameter to 10 degrees, then psf = fspecial("motion", 5, 10) psf = NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA the returned matrix only contains NA elements. I would expect a correctly interpolated motion matrix here. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev