convolveImage: convolve one image with another

View source: R/convolveImage.R

convolveImageR Documentation

convolve one image with another

Description

convolves images together

Usage

convolveImage(image, kernelImage, crop = TRUE)

Arguments

image

antsImage to convolve

kernelImage

antsImage acting as kernel

crop

boolean automatically crops kernelImage

Value

convimage

Author(s)

Brian B. Avants

Examples


fi <- antsImageRead(getANTsRData("r16"), 2)
convimg <- makeImage(c(3, 3), c(1, 0, 1, 0, -4, 0, 1, 0, 1))
convout <- convolveImage(fi, convimg)
convimg2 <- makeImage(c(3, 3), c(0, 1, 0, 1, 0, -1, 0, -1, 0))
convout2 <- convolveImage(fi, convimg2)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.