+2011-07-21 6.7.1-0 Anthony Thyssen <A.Thyssen@griffith...>
+ * Removed a case that prevented rotations of rectangle kernels.
+
2011-07-20 6.7.1-0 Glenn Randers-Pehrson <glennrp@image...>
* Use zlib default compression strategy instead of Z_RLE and Z_FIXED
strategies when linking with zlib versions (prior to 1.2.0 and 1.2.2.2,
break;
}
-
if ( method == ConvolveMorphology && kernel->width == 1 )
{ /* Special handling (for speed) of vertical (blur) kernels.
** This performs its handling in columns rather than in rows.
GrayErode is equivalent but with kernel values subtracted from pixels
without the kernel rotation
GreyDilate is equivalent but using Maximum() instead of Minimum()
- useing kernel rotation
+ using kernel rotation
+
+ It has thus been preserved for future implementation of those methods.
case DistanceMorphology:
/* Add kernel Value and select the minimum value found.
/* These only allows a +/-90 degree rotation (by transpose) */
/* A 180 degree rotation is useless */
case BlurKernel:
- case RectangleKernel:
if ( 135.0 < angle && angle <= 225.0 )
return;
if ( 225.0 < angle && angle <= 315.0 )
default:
break;
}
- /* Attempt rotations by 45 degrees */
+ /* Attempt rotations by 45 degrees -- 3x3 kernels only */
if ( 22.5 < fmod(angle,90.0) && fmod(angle,90.0) <= 67.5 )
{
if ( kernel->width == 3 && kernel->height == 3 )
%
% The format of the ShowKernel method is:
%
-% void ShowKernelInfo(KernelInfo *kernel)
+% void ShowKernelInfo(const KernelInfo *kernel)
%
% A description of each parameter follows:
%
% o kernel: the Morphology/Convolution kernel
%
*/
-MagickExport void ShowKernelInfo(KernelInfo *kernel)
+MagickExport void ShowKernelInfo(const KernelInfo *kernel)
{
- KernelInfo
+ const KernelInfo
*k;
size_t
extern MagickExport void
ScaleGeometryKernelInfo(KernelInfo *,const char *),
- ShowKernelInfo(KernelInfo *);
+ ShowKernelInfo(const KernelInfo *);
#if defined(__cplusplus) || defined(c_plusplus)
}