Convolves images with two one-dimensional filters.
Convolves images with two one-dimensional filters.
Image to be convolved.
Horizontal convolution filter.
Vertical convolution filter.
Convolved image
Crop an input image to the given bounding box described by (startX, startY, endX, endY).
Crop an input image to the given bounding box described by (startX, startY, endX, endY).
x-position (inclusive) to describe upper left corner of BB
y-position (inclusive) to describe upper left corner of BB
x-position (exclusive) to describe lower right corner of BB
y-position (exclusive) to describe lower right corner of BB
new image of size (endX - startX, endY - startY)
Flip the image horizontally flipImage(im)(x,y,z) = im(x, im.
Flip the image horizontally flipImage(im)(x,y,z) = im(x, im.metadata.yDim-y-1, z) for all valid (x,y,z).
An input image.
A flipped image.
Flip the image such that flipImage(im)(x,y,z) = im(im.
Flip the image such that flipImage(im)(x,y,z) = im(im.metadata.xDim-x-1,im.metadata.yDim-y-1,im.metadata.numChannels-z-1) for all valid (x,y,z).
An input image.
A flipped image.
Load image from file.
Load image from file.
Bytes of an input file.
Apply a function to every pixel in the image.
Apply a function to every pixel in the image. NOTE: This function creates a copy of the input image and does not affect the input image.
image to apply function to
function that maps pixels from input to output
new image that is the result of applying the function.
Combine two images applying a function on corresponding pixels.
Combine two images applying a function on corresponding pixels. Requires both images to be of the same size
First input image
Second input image
Function that takes in a pair of pixels and returns the pixel in the combined image
Combined image
Split an image into a number of images, one per channel of input image.
Split an image into a number of images, one per channel of input image.
Input image to be split
Array of images, one per channel of input image
Converts an input image to Grayscale according to the NTSC standard weights for RGB images and using sqrt sum of squares for images with other numbers of channels.
Converts an input image to Grayscale according to the NTSC standard weights for RGB images and using sqrt sum of squares for images with other numbers of channels.
Input image.
Grayscaled image.
Writes image to file fname
Writes image to file fname
If Image is non-standard (that is, values not in [0,255], the "scale" argument can be passed. Currently assumes a 3 or 1-dimensional image.
Destination filename.
Input image.
Scale image to [0,255]