• Home
  • Raw
  • Download

Lines Matching refs:kernel_info

777     *kernel_info;  in BlurImage()  local
795 kernel_info=AcquireKernelInfo(geometry,exception); in BlurImage()
796 if (kernel_info == (KernelInfo *) NULL) in BlurImage()
798 blur_image=ConvolveImage(image,kernel_info,exception); in BlurImage()
799 kernel_info=DestroyKernelInfo(kernel_info); in BlurImage()
831 const KernelInfo *kernel_info,ExceptionInfo *exception) in ConvolveImage() argument
837 convolve_image=AccelerateConvolveImage(image,kernel_info,exception); in ConvolveImage()
842 convolve_image=MorphologyImage(image,ConvolveMorphology,1,kernel_info, in ConvolveImage()
1192 *kernel_info; in EdgeImage() local
1207 kernel_info=AcquireKernelInfo((const char *) NULL,exception); in EdgeImage()
1208 if (kernel_info == (KernelInfo *) NULL) in EdgeImage()
1210 (void) ResetMagickMemory(kernel_info,0,sizeof(*kernel_info)); in EdgeImage()
1211 kernel_info->width=width; in EdgeImage()
1212 kernel_info->height=width; in EdgeImage()
1213 kernel_info->x=(ssize_t) (kernel_info->width-1)/2; in EdgeImage()
1214 kernel_info->y=(ssize_t) (kernel_info->height-1)/2; in EdgeImage()
1215 kernel_info->signature=MagickCoreSignature; in EdgeImage()
1216 kernel_info->values=(MagickRealType *) MagickAssumeAligned( in EdgeImage()
1217 AcquireAlignedMemory(kernel_info->width,kernel_info->height* in EdgeImage()
1218 sizeof(*kernel_info->values))); in EdgeImage()
1219 if (kernel_info->values == (MagickRealType *) NULL) in EdgeImage()
1221 kernel_info=DestroyKernelInfo(kernel_info); in EdgeImage()
1224 for (i=0; i < (ssize_t) (kernel_info->width*kernel_info->height); i++) in EdgeImage()
1225 kernel_info->values[i]=(-1.0); in EdgeImage()
1226 kernel_info->values[i/2]=(double) kernel_info->width*kernel_info->height-1.0; in EdgeImage()
1227 edge_image=ConvolveImage(image,kernel_info,exception); in EdgeImage()
1228 kernel_info=DestroyKernelInfo(kernel_info); in EdgeImage()
1276 *kernel_info; in EmbossImage() local
1297 kernel_info=AcquireKernelInfo((const char *) NULL,exception); in EmbossImage()
1298 if (kernel_info == (KernelInfo *) NULL) in EmbossImage()
1300 kernel_info->width=width; in EmbossImage()
1301 kernel_info->height=width; in EmbossImage()
1302 kernel_info->x=(ssize_t) (width-1)/2; in EmbossImage()
1303 kernel_info->y=(ssize_t) (width-1)/2; in EmbossImage()
1304 kernel_info->values=(MagickRealType *) MagickAssumeAligned( in EmbossImage()
1305 AcquireAlignedMemory(kernel_info->width,kernel_info->width* in EmbossImage()
1306 sizeof(*kernel_info->values))); in EmbossImage()
1307 if (kernel_info->values == (MagickRealType *) NULL) in EmbossImage()
1309 kernel_info=DestroyKernelInfo(kernel_info); in EmbossImage()
1312 j=(ssize_t) (kernel_info->width-1)/2; in EmbossImage()
1319 kernel_info->values[i]=(MagickRealType) (((u < 0) || (v < 0) ? -8.0 : in EmbossImage()
1323 kernel_info->values[i]=0.0; in EmbossImage()
1329 for (i=0; i < (ssize_t) (kernel_info->width*kernel_info->height); i++) in EmbossImage()
1330 normalize+=kernel_info->values[i]; in EmbossImage()
1332 for (i=0; i < (ssize_t) (kernel_info->width*kernel_info->height); i++) in EmbossImage()
1333 kernel_info->values[i]*=gamma; in EmbossImage()
1334 emboss_image=ConvolveImage(image,kernel_info,exception); in EmbossImage()
1335 kernel_info=DestroyKernelInfo(kernel_info); in EmbossImage()
1381 *kernel_info; in GaussianBlurImage() local
1394 kernel_info=AcquireKernelInfo(geometry,exception); in GaussianBlurImage()
1395 if (kernel_info == (KernelInfo *) NULL) in GaussianBlurImage()
1397 blur_image=ConvolveImage(image,kernel_info,exception); in GaussianBlurImage()
1398 kernel_info=DestroyKernelInfo(kernel_info); in GaussianBlurImage()
3637 *kernel_info; in SharpenImage() local
3657 kernel_info=AcquireKernelInfo((const char *) NULL,exception); in SharpenImage()
3658 if (kernel_info == (KernelInfo *) NULL) in SharpenImage()
3660 (void) ResetMagickMemory(kernel_info,0,sizeof(*kernel_info)); in SharpenImage()
3661 kernel_info->width=width; in SharpenImage()
3662 kernel_info->height=width; in SharpenImage()
3663 kernel_info->x=(ssize_t) (width-1)/2; in SharpenImage()
3664 kernel_info->y=(ssize_t) (width-1)/2; in SharpenImage()
3665 kernel_info->signature=MagickCoreSignature; in SharpenImage()
3666 kernel_info->values=(MagickRealType *) MagickAssumeAligned( in SharpenImage()
3667 AcquireAlignedMemory(kernel_info->width,kernel_info->height* in SharpenImage()
3668 sizeof(*kernel_info->values))); in SharpenImage()
3669 if (kernel_info->values == (MagickRealType *) NULL) in SharpenImage()
3671 kernel_info=DestroyKernelInfo(kernel_info); in SharpenImage()
3675 j=(ssize_t) (kernel_info->width-1)/2; in SharpenImage()
3681 kernel_info->values[i]=(MagickRealType) (-exp(-((double) u*u+v*v)/(2.0* in SharpenImage()
3683 normalize+=kernel_info->values[i]; in SharpenImage()
3687 kernel_info->values[i/2]=(double) ((-2.0)*normalize); in SharpenImage()
3689 for (i=0; i < (ssize_t) (kernel_info->width*kernel_info->height); i++) in SharpenImage()
3690 normalize+=kernel_info->values[i]; in SharpenImage()
3692 for (i=0; i < (ssize_t) (kernel_info->width*kernel_info->height); i++) in SharpenImage()
3693 kernel_info->values[i]*=gamma; in SharpenImage()
3694 sharp_image=ConvolveImage(image,kernel_info,exception); in SharpenImage()
3695 kernel_info=DestroyKernelInfo(kernel_info); in SharpenImage()