CPU Module

Functions and values

Function or value Description

applyFilter filter image

Full Usage: applyFilter filter image

Parameters:
    filter : float32[,] - The filter kernel to apply to the image
    image : MyImage - The input image to process

Returns: MyImage A new processed image

Applies a filter to an input image

filter : float32[,]

The filter kernel to apply to the image

image : MyImage

The input image to process

Returns: MyImage

A new processed image

flip isVertical image

Full Usage: flip isVertical image

Parameters:
    isVertical : bool - True to flip the image vertically or false for horizontal flip
    image : MyImage - The input image to flip

Returns: MyImage A new flipped image

Flips an input image either vertically or horizontally

isVertical : bool

True to flip the image vertically or false for horizontal flip

image : MyImage

The input image to flip

Returns: MyImage

A new flipped image

rotate isClockwise image

Full Usage: rotate isClockwise image

Parameters:
    isClockwise : bool - True to rotate the image clockwise or false for counterclockwise rotation
    image : MyImage - The input image to rotate

Returns: MyImage A new rotated image

Rotates an input image either clockwise or counterclockwise

isClockwise : bool

True to rotate the image clockwise or false for counterclockwise rotation

image : MyImage

The input image to rotate

Returns: MyImage

A new rotated image